Home
last modified time | relevance | path

Searched refs:index_of (Results 1 - 6 of 6) sorted by relevance

/third_party/rust/crates/clap/tests/builder/
H A Daction.rs16 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("mamma in set_false()
[all...]
H A Dindices.rs50 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()
H A Ddefault_missing_vals.rs26 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()
H A Ddefault_vals.rs37 assert_eq!(m.index_of("o"), Some(1)); in default_has_index()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
H A Decma-builtin-helpers.c579 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 if (ecma_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/
H A Darg_matches.rs677 /// assert_eq!(m.index_of("flag"), Some(1));
678 /// assert_eq!(m.index_of("option"), Some(3));
696 /// assert_eq!(m.index_of("flag"), Some(1));
697 /// assert_eq!(m.index_of("option"), Some(3));
724 /// assert_eq!(m.index_of("flag"), Some(1));
725 /// assert_eq!(m.index_of("flag2"), Some(3));
726 /// assert_eq!(m.index_of("flag3"), Some(2));
727 /// assert_eq!(m.index_of("option"), Some(5));
753 /// assert_eq!(m.index_of("flag"), Some(1));
754 /// assert_eq!(m.index_of("flag
779 pub fn index_of(&self, id: &str) -> Option<usize> { index_of() functions
[all...]

Completed in 6 milliseconds