Searched refs:index_of (Results 1 – 6 of 6) sorted by relevance
/third_party/rust/crates/clap/tests/builder/ |
D | action.rs | 16 assert_eq!(matches.index_of("mammal"), None); in set() 24 assert_eq!(matches.index_of("mammal"), Some(2)); in set() 39 assert_eq!(matches.index_of("mammal"), Some(4)); in set() 49 assert_eq!(matches.index_of("mammal"), None); in append() 89 assert_eq!(matches.index_of("mammal"), Some(1)); in set_true() 97 assert_eq!(matches.index_of("mammal"), Some(1)); in set_true() 112 assert_eq!(matches.index_of("mammal"), Some(2)); in set_true() 130 assert_eq!(matches.index_of("mammal"), Some(1)); in set_true_with_explicit_default_value() 135 assert_eq!(matches.index_of("mammal"), Some(1)); in set_true_with_explicit_default_value() 233 assert_eq!(matches.index_of("mammal"), Some(1)); in set_false() [all …]
|
D | indices.rs | 50 assert_eq!(m.index_of("exclude"), Some(2)); in index_mult_opts() 51 assert_eq!(m.index_of("include"), Some(5)); in index_mult_opts() 63 assert_eq!(m.index_of("exclude"), Some(1)); in index_flag() 64 assert_eq!(m.index_of("include"), Some(2)); in index_flag() 76 assert_eq!(m.index_of("exclude"), Some(4)); in index_flags() 77 assert_eq!(m.index_of("include"), Some(5)); in index_flags()
|
D | default_missing_vals.rs | 26 assert_eq!(m.index_of("color"), Some(1)); in opt_missing() 52 assert_eq!(m.index_of("color"), Some(2)); in opt_present_with_missing_value() 78 assert_eq!(m.index_of("color"), Some(2)); in opt_present_with_value() 103 assert_eq!(m.index_of("color"), Some(2)); in opt_present_with_empty_value() 318 assert_eq!(m.index_of("color"), Some(2)); in valid_index()
|
D | default_vals.rs | 37 assert_eq!(m.index_of("o"), Some(1)); in default_has_index()
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-helpers.c | 579 ecma_length_t index_of = 0; in ecma_builtin_helper_string_prototype_object_index_of() local 595 … if (ecma_builtin_helper_string_find_index (original_str_p, search_str_p, true, start, &index_of)) in ecma_builtin_helper_string_prototype_object_index_of() 598 ret_value = ecma_make_boolean_value (index_of == start); in ecma_builtin_helper_string_prototype_object_index_of() 604 … if (ecma_builtin_helper_string_find_index (original_str_p, search_str_p, true, start, &index_of)) in ecma_builtin_helper_string_prototype_object_index_of() 632 (ecma_length_t) start_ends_with, &index_of)) in ecma_builtin_helper_string_prototype_object_index_of() 634 ret_value = ecma_make_boolean_value (index_of == (ecma_length_t) start_ends_with); in ecma_builtin_helper_string_prototype_object_index_of() 645 …builtin_helper_string_find_index (original_str_p, search_str_p, use_first_index, start, &index_of)) in ecma_builtin_helper_string_prototype_object_index_of() 647 ret_num = ((ecma_number_t) index_of); in ecma_builtin_helper_string_prototype_object_index_of()
|
/third_party/rust/crates/clap/src/parser/matches/ |
D | arg_matches.rs | 779 pub fn index_of(&self, id: &str) -> Option<usize> { in index_of() method
|