Home
last modified time | relevance | path

Searched refs:is_whitespace (Results 1 – 25 of 26) sorted by relevance

12

/external/libtextclassifier/native/utils/
Dtokenizer-utils.cc49 bool is_whitespace = IsWhitespace(codepoint); in TokenizeOnWhiteSpacePunctuationAndChineseLetter() local
51 is_whitespace || IsPunctuation(codepoint) || IsChineseLetter(codepoint); in TokenizeOnWhiteSpacePunctuationAndChineseLetter()
52 bool to_keep = !is_whitespace; in TokenizeOnWhiteSpacePunctuationAndChineseLetter()
Dtokenizer.cc257 bool is_whitespace = true; in ICUTokenize() local
260 is_whitespace = false; in ICUTokenize()
268 if (!is_whitespace || icu_preserve_whitespace_tokens_) { in ICUTokenize()
270 /*is_padding=*/false, is_whitespace)); in ICUTokenize()
295 UnicodeText::const_iterator it, bool is_whitespace = false) { in NumberTokenize() argument
299 /*is_padding=*/false, is_whitespace); in NumberTokenize()
/external/rust/crates/syn/src/
Dwhitespace.rs51 if is_whitespace(ch) { in skip()
62 fn is_whitespace(ch: char) -> bool { in is_whitespace() function
64 ch.is_whitespace() || ch == '\u{200e}' || ch == '\u{200f}' in is_whitespace()
Dlit.rs1097 if ch.is_whitespace() { in parse_lit_str_cooked()
1189 if ch.is_whitespace() { in parse_lit_byte_str_cooked()
/external/tflite-support/tensorflow_lite_support/custom_ops/kernel/sentencepiece/
Doptimized_encoder.cc60 inline char is_whitespace(char c) { in is_whitespace() function
66 if (len == 0 || !is_whitespace(*data)) { in remove_extra_whitespaces()
70 for (; num_consumed < len && is_whitespace(data[num_consumed]); in remove_extra_whitespaces()
125 if (!result.empty() && is_whitespace(result.back())) { in NormalizeString()
132 if (len > 0 && is_whitespace(*data)) { in NormalizeString()
/external/cpuinfo/src/linux/
Dcpulist.c30 inline static bool is_whitespace(char c) { in is_whitespace() function
59 if (!is_whitespace(*entry_start)) { in parse_entry()
65 if (!is_whitespace(entry_end[-1])) { in parse_entry()
Dprocessors.c58 inline static bool is_whitespace(char c) { in is_whitespace() function
98 if (!is_whitespace(*char_ptr)) { in uint32_parser()
/external/libtextclassifier/native/annotator/number/
Dnumber.cc79 if (start_index < 0 || tokens[start_index].is_whitespace) { in TokensAreValidStart()
122 if (ending_index >= tokens.size() || tokens[ending_index].is_whitespace) { in TokensAreValidEnding()
136 tokens[ending_index + 1].is_whitespace) { in TokensAreValidEnding()
190 if (tokens[suffix_token_start_index].is_whitespace) { in FindPercentSuffixEndCodepoint()
/external/rust/crates/textwrap/src/
Dindentation.rs91 if !ch.is_whitespace() { in dedent()
125 if line.starts_with(&prefix) && line.chars().any(|c| !c.is_whitespace()) { in dedent()
/external/skqp/src/ports/
DSkFontMgr_android_parser.cpp132 static bool is_whitespace(char c) { in is_whitespace() function
140 while (is_whitespace(*start)) { ++start; } in trim_string()
143 while (is_whitespace(*end)) { --end; } in trim_string()
287 for (; i < valueLen && is_whitespace(value[i]); ++i) { } in __anonc5713b1c0602()
290 for (j = i + 1; j < valueLen && !is_whitespace(value[j]); ++j) { } in __anonc5713b1c0602()
/external/skia/src/ports/
DSkFontMgr_android_parser.cpp134 static bool is_whitespace(char c) { in is_whitespace() function
142 while (is_whitespace(*start)) { ++start; } in trim_string()
145 while (is_whitespace(*end)) { --end; } in trim_string()
289 for (; i < valueLen && is_whitespace(value[i]); ++i) { } in __anon22f31de50602()
292 for (j = i + 1; j < valueLen && !is_whitespace(value[j]); ++j) { } in __anon22f31de50602()
/external/libtextclassifier/native/annotator/
Dtypes.h210 bool is_whitespace; member
225 CodepointIndex arg_end, bool is_padding, bool is_whitespace) in Token()
230 is_whitespace(is_whitespace) {} in Token()
/external/rust/crates/proc-macro2/src/
Dparse.rs102 if is_whitespace(ch) { in skip_whitespace()
140 fn is_whitespace(ch: char) -> bool { in is_whitespace() function
142 ch.is_whitespace() || ch == '\u{200e}' || ch == '\u{200f}' in is_whitespace()
387 Some((_, ch)) if ch.is_whitespace() => { in cooked_string()
442 Some((_, ch)) if ch.is_whitespace() => last = ch, in cooked_byte_string()
/external/rust/crates/regex-syntax/src/hir/
Dprint.rs222 if c <= 0x7F as char && !c.is_control() && !c.is_whitespace() {
231 if c <= 0x7F as char && !c.is_control() && !c.is_whitespace() {
Dmod.rs976 let start = if !self.start.is_whitespace() && !self.start.is_control() in fmt()
982 let end = if !self.end.is_whitespace() && !self.end.is_control() { in fmt()
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/
Drc_test_helpers.c66 static int is_whitespace(const char *str) in is_whitespace() function
570 if (line[0] == '#' || is_whitespace(line)) { in load_program()
591 if (line[0] == '#' || is_whitespace(line)) { in load_program()
/external/rust/crates/chrono/src/format/
Dscan.rs203 Ok(s.trim_left_matches(|c: char| c == ':' || c.is_whitespace())) in colon_or_space()
349 Ok((s.trim_left_matches(|c: char| !c.is_whitespace()), ())) in timezone_name_skip()
Dstrftime.rs460 Some(c) if c.is_whitespace() => { in next()
464 .find(|c: char| !c.is_whitespace()) in next()
476 .find(|c: char| c.is_whitespace() || c == '%') in next()
/external/skia/modules/skottie/src/text/
DSkottieShaper.cpp263 static const auto is_whitespace = [](char c) { in commitFragementedRun() local
298 line_index, is_whitespace(fUTF8[clusters[i]]) in commitFragementedRun()
/external/rust/crates/fallible-iterator/src/
Dtest.rs175 .map(|c| if c.is_whitespace() { Err(()) } else { Ok(c) }), in iterator()
/external/rust/crates/protobuf/src/text_format/lexer/
Dlexer_impl.rs150 self.take_while(|c| c.is_whitespace()); in skip_whitespaces()
/external/rust/crates/rayon/src/
Dstr.rs754 .par_split(char::is_whitespace) in drive_unindexed()
/external/rust/crates/smallvec/src/
Dtests.rs866 .scan(0, |_, ch| if ch.is_whitespace() { None } else { Some(ch) }); in resumable_extend()
/external/rust/crates/bstr/src/
Dext_slice.rs3306 Fields { it: bytes.fields_with(|ch| ch.is_whitespace()) } in new()
/external/rust/crates/regex-syntax/src/ast/
Dparse.rs546 if self.char().is_whitespace() { in bump_space()
593 if c.is_whitespace() { in peek_space()
1721 while !self.is_eof() && self.char().is_whitespace() { in parse_decimal()
1730 while !self.is_eof() && self.char().is_whitespace() { in parse_decimal()

12