/external/libtextclassifier/native/utils/ |
D | tokenizer-utils.cc | 49 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()
|
D | tokenizer.cc | 257 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/ |
D | whitespace.rs | 51 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()
|
D | lit.rs | 1097 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/ |
D | optimized_encoder.cc | 60 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/ |
D | cpulist.c | 30 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()
|
D | processors.c | 58 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/ |
D | number.cc | 79 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/ |
D | indentation.rs | 91 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/ |
D | SkFontMgr_android_parser.cpp | 132 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/ |
D | SkFontMgr_android_parser.cpp | 134 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/ |
D | types.h | 210 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/ |
D | parse.rs | 102 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/ |
D | print.rs | 222 if c <= 0x7F as char && !c.is_control() && !c.is_whitespace() { 231 if c <= 0x7F as char && !c.is_control() && !c.is_whitespace() {
|
D | mod.rs | 976 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/ |
D | rc_test_helpers.c | 66 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/ |
D | scan.rs | 203 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()
|
D | strftime.rs | 460 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/ |
D | SkottieShaper.cpp | 263 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/ |
D | test.rs | 175 .map(|c| if c.is_whitespace() { Err(()) } else { Ok(c) }), in iterator()
|
/external/rust/crates/protobuf/src/text_format/lexer/ |
D | lexer_impl.rs | 150 self.take_while(|c| c.is_whitespace()); in skip_whitespaces()
|
/external/rust/crates/rayon/src/ |
D | str.rs | 754 .par_split(char::is_whitespace) in drive_unindexed()
|
/external/rust/crates/smallvec/src/ |
D | tests.rs | 866 .scan(0, |_, ch| if ch.is_whitespace() { None } else { Some(ch) }); in resumable_extend()
|
/external/rust/crates/bstr/src/ |
D | ext_slice.rs | 3306 Fields { it: bytes.fields_with(|ch| ch.is_whitespace()) } in new()
|
/external/rust/crates/regex-syntax/src/ast/ |
D | parse.rs | 546 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()
|