Home
last modified time | relevance | path

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

/third_party/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()
/third_party/skia/src/ports/
DSkFontMgr_config_parser.cpp114 static bool is_whitespace(char c) in is_whitespace() function
124 while (is_whitespace(*start)) { ++start; } in trim_string()
127 while (is_whitespace(*end)) { in trim_string()
273 for (; i < valueLen && is_whitespace(value[i]); ++i) { } in __anonae5419110702()
278 for (j = i + 1; j < valueLen && !is_whitespace(value[j]); ++j) { } in __anonae5419110702()
DSkFontMgr_android_parser.cpp136 static bool is_whitespace(char c) { in is_whitespace() function
144 while (is_whitespace(*start)) { ++start; } in trim_string()
147 while (is_whitespace(*end)) { --end; } in trim_string()
160 for (; i < valueLen && is_whitespace(value[i]); ++i) { } in parse_space_separated_languages()
163 for (j = i + 1; j < valueLen && !is_whitespace(value[j]); ++j) { } in parse_space_separated_languages()
/third_party/rust/crates/humantime/src/
Dduration.rs115 c if c.is_whitespace() => continue, in parse_first_char()
167 c if c.is_whitespace() => {} in parse()
186 c if c.is_whitespace() => break, in parse()
/third_party/rust/crates/regex/regex-syntax/src/hir/
Dprint.rs221 if c <= 0x7F as char && !c.is_control() && !c.is_whitespace() {
230 if c <= 0x7F as char && !c.is_control() && !c.is_whitespace() {
Dmod.rs980 let start = if !self.start.is_whitespace() && !self.start.is_control() in fmt()
986 let end = if !self.end.is_whitespace() && !self.end.is_control() { in fmt()
/third_party/mesa3d/src/gallium/drivers/r300/compiler/tests/
Drc_test_helpers.c66 static int is_whitespace(const char *str) in is_whitespace() function
571 if (line[0] == '#' || is_whitespace(line)) { in load_program()
592 if (line[0] == '#' || is_whitespace(line)) { in load_program()
/third_party/pulseaudio/src/pulsecore/
Djson.c81 static bool is_whitespace(char c) { in is_whitespace() function
370 while (is_whitespace(*str)) in parse_array()
420 if (is_whitespace(*str)) { in parse_value()
452 if (is_whitespace(*str)) { in parse_value()
/third_party/rust/crates/clap/src/builder/
Dpossible_value.rs187 Some(if self.name.contains(char::is_whitespace) { in get_visible_quoted_name()
/third_party/skia/modules/skottie/src/text/
DSkottieShaper.cpp262 static const auto is_whitespace = [](char c) { in commitFragementedRun() local
297 line_index, is_whitespace(fUTF8[clusters[i]]) in commitFragementedRun()
/third_party/rust/crates/proc-macro2/src/
Dparse.rs114 if is_whitespace(ch) { in skip_whitespace()
152 fn is_whitespace(ch: char) -> bool { in is_whitespace() function
154 ch.is_whitespace() || ch == '\u{200e}' || ch == '\u{200f}' in is_whitespace()
/third_party/rust/crates/strsim-rs/src/
Dlib.rs437 let a: String = a.chars().filter(|&x| !char::is_whitespace(x)).collect(); in sorensen_dice()
438 let b: String = b.chars().filter(|&x| !char::is_whitespace(x)).collect(); in sorensen_dice()
/third_party/rust/crates/regex/regex-debug/src/
Dmain.rs345 if c.is_whitespace() { in escape_unicode()
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dlexer.cc29 bool is_whitespace(char c) { in is_whitespace() function
144 while (!is_eof() && is_whitespace(content_->data[pos_])) { in skip_whitespace_and_comments()
/third_party/rust/crates/clap/src/error/
Dformat.rs463 if s.contains(char::is_whitespace) { in escape()
/third_party/rust/crates/clap/src/output/
Dhelp_template.rs745 if pvs.contains(char::is_whitespace) { in spec_vals()
/third_party/rust/crates/regex/regex-syntax/src/ast/
Dparse.rs538 if self.char().is_whitespace() { in bump_space()
585 if c.is_whitespace() { in peek_space()
1709 while !self.is_eof() && self.char().is_whitespace() { in parse_decimal()
1718 while !self.is_eof() && self.char().is_whitespace() { in parse_decimal()
/third_party/rust/crates/regex/regex-syntax/src/hir/literal/
Dmod.rs930 if c.is_whitespace() { in escape_unicode()
/third_party/rust/crates/memchr/bench/data/code/
Drust-library.rs4347 assert!("".chars().all(|c| c.is_whitespace())); in test_is_whitespace()
4348 assert!(" ".chars().all(|c| c.is_whitespace())); in test_is_whitespace()
4349 assert!("\u{2009}".chars().all(|c| c.is_whitespace())); // Thin space in test_is_whitespace()
4350 assert!(" \n\t ".chars().all(|c| c.is_whitespace())); in test_is_whitespace()
4351 assert!(!" _ ".chars().all(|c| c.is_whitespace())); in test_is_whitespace()
5136 assert_eq!(" \t a \t ".trim_start_matches(|c: char| c.is_whitespace()), "a \t ");
5137 assert_eq!(" \t a \t ".trim_end_matches(|c: char| c.is_whitespace()), " \t a");
5138 assert_eq!(" \t a \t ".trim_start_matches(|c: char| c.is_whitespace()), "a \t ");
5139 assert_eq!(" \t a \t ".trim_end_matches(|c: char| c.is_whitespace()), " \t a");
5140 assert_eq!(" \t a \t ".trim_matches(|c: char| c.is_whitespace()), "a");
[all …]