Home
last modified time | relevance | path

Searched refs:str_p (Results 1 – 25 of 59) sorted by relevance

123

/third_party/boost/libs/spirit/classic/test/
Dpost_skips.cpp30 info = parse(test1, str_p("12345")); in parse_tests()
34 info = parse(test1, str_p("12345"), blank_p); in parse_tests()
39 info = parse(test1, str_p("12345") >> end_p, blank_p); in parse_tests()
41 info = parse(test2, str_p("12345") >> end_p, blank_p); in parse_tests()
45 info = parse(test1, str_p("12345") >> !end_p, blank_p); in parse_tests()
47 info = parse(test2, str_p("12345") >> !end_p, blank_p); in parse_tests()
57 info = ast_parse(test1, str_p("12345")); in ast_parse_tests()
61 info = ast_parse(test1, str_p("12345"), blank_p); in ast_parse_tests()
66 info = ast_parse(test1, str_p("12345") >> end_p, blank_p); in ast_parse_tests()
68 info = ast_parse(test2, str_p("12345") >> end_p, blank_p); in ast_parse_tests()
[all …]
Dshortest_alternative_tests.cpp28 str_p("a") in shortest_alternative_parser_test()
29 | str_p("aa") in shortest_alternative_parser_test()
30 | str_p("aaa") in shortest_alternative_parser_test()
31 | str_p("aaaa") in shortest_alternative_parser_test()
41 str_p("d") in shortest_alternative_parser_test()
42 | str_p("cd") in shortest_alternative_parser_test()
43 | str_p("bcd") in shortest_alternative_parser_test()
44 | str_p("abcd") in shortest_alternative_parser_test()
Dswitch_tests_general_def.cpp48 case_p<'c'>(str_p("bcd")), in definition()
49 default_p(str_p("default")) in definition()
69 default_p(str_p("default")), in definition()
70 case_p<'c'>(str_p("bcd")) in definition()
88 default_p(str_p("default")), in definition()
91 case_p<'c'>(str_p("bcd")) in definition()
113 case_p<'c'>(str_p("bcd")), in definition()
114 default_p(str_p("default")) in definition()
134 default_p(str_p("default")), in definition()
135 case_p<'c'>(str_p("bcd")) in definition()
[all …]
Ddistinct_tests.cpp61 rule_t r = distinct_p("keyword") >> !str_p("--") >> int_p; in distinct_parser_test()
82 rule_t r = distinct_d[str_p("keyword")] >> !ch_p('-') >> int_p; in distinct_directive_test()
101 rule_t r = distinct_d[str_p("keyword")] >> !ch_p('-') >> int_p; in distinct_directive_test()
124 rule_t r = distinct_d["keyword"] >> !str_p("--") >> int_p; in distinct_directive_test()
132 rule_t r = distinct_d[str_p("keyword")] >> !str_p("--") >> int_p; in distinct_directive_test()
168 rule_t r = distinct_p("keyword") >> !str_p("--") >> int_p; in dynamic_distinct_parser_test()
189 rule_t r = distinct_d[str_p("keyword")] >> !ch_p('-') >> int_p; in dynamic_distinct_directive_test()
208 rule_t r = distinct_d[str_p("keyword")] >> !ch_p('-') >> int_p; in dynamic_distinct_directive_test()
222 rule_t r = distinct_d["keyword"] >> !str_p("--") >> int_p; in dynamic_distinct_directive_test()
230 rule_t r = distinct_d[str_p("keyword")] >> !str_p("--") >> int_p; in dynamic_distinct_directive_test()
Dchar_strings_test.cpp18 using BOOST_SPIRIT_CLASSIC_NS::str_p; in main()
25 rule<> strings = str_p("abcd"); in main()
26 strings = str_p('a'); in main()
27 strings = str_p(str.begin(), str.end()); in main()
Dswitch_tests_eps_default.cpp48 case_p<'c'>(str_p("bcd")), in definition()
70 case_p<'c'>(str_p("bcd")) in definition()
91 case_p<'c'>(str_p("bcd")) in definition()
113 case_p<'c'>(str_p("bcd")), in definition()
135 case_p<'c'>(str_p("bcd")) in definition()
156 case_p<'c'>(str_p("bcd")) in definition()
185 case_p<2>(str_p("bcd")), in definition()
210 case_p<2>(str_p("bcd")) in definition()
234 case_p<2>(str_p("bcd")) in definition()
Dif_tests.cpp101 using ::BOOST_SPIRIT_CLASSIC_NS::str_p; in test_enclosed_fail()
108 ::BOOST_SPIRIT_CLASSIC_NS::strlit<const char*> success_p = str_p(p); in test_enclosed_fail()
109 ::BOOST_SPIRIT_CLASSIC_NS::strlit<const char*> fail_p = str_p("xxx"); in test_enclosed_fail()
142 using ::BOOST_SPIRIT_CLASSIC_NS::str_p; in main()
165 hex_prefix = str_p("0x"); in main()
Ddirectives_tests.cpp36 hit = str_p("Hello").parse(scanx); in directives_test1()
66 hit = (str_p("Hello") >> "World").parse(scan); in directives_test1()
71 hit = as_lower_d[str_p("hello") >> "world"].parse(scan); in directives_test1()
101 hit = longest_d[str_p("raza") | "razaman" | "razamanaz"].parse(scanz); in directives_test1()
106 hit = shortest_d[str_p("raza") | "razaman" | "razamanaz"].parse(scanz); in directives_test1()
Dbug_fixes.cpp208 BOOST_TEST(parse("test ", str_p("test") >> end_p, space_p).full); in bug_007()
209 BOOST_TEST(pt_parse("test ", str_p("test") >> end_p, space_p).full); in bug_007()
210 BOOST_TEST(ast_parse("test ", str_p("test") >> end_p, space_p).full); in bug_007()
345 , limit_d(1U, 10U)[uint_p] | str_p("test")); in bug_009()
Doperators_tests.cpp27 pi = parse("Hello World", str_p("Hello ") >> "World"); in operators_tests()
33 pi = parse("Banana", str_p("Banana") | "Pineapple"); in operators_tests()
39 pi = parse("Pineapple", str_p("Banana") | "Pineapple"); in operators_tests()
107 pi = parse("switcher ", str_p("switcher") - "switch"); in operators_tests()
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-conversion.c294 ecma_utf8_string_to_number_by_radix (const lit_utf8_byte_t *str_p, /**< utf-8 string */ in ecma_utf8_string_to_number_by_radix() argument
306 for (const lit_utf8_byte_t * iter_p = str_p; iter_p <= end_p; iter_p++) in ecma_utf8_string_to_number_by_radix()
326 for (const lit_utf8_byte_t * iter_p = str_p; iter_p <= end_p; iter_p++) in ecma_utf8_string_to_number_by_radix()
366 ecma_utf8_string_to_number (const lit_utf8_byte_t *str_p, /**< utf-8 string */ in ecma_utf8_string_to_number() argument
376 ecma_string_trim_helper (&str_p, &str_size); in ecma_utf8_string_to_number()
377 const lit_utf8_byte_t *end_p = str_p + (str_size - 1); in ecma_utf8_string_to_number()
384 if (end_p >= str_p + 2 in ecma_utf8_string_to_number()
385 && str_p[0] == LIT_CHAR_0) in ecma_utf8_string_to_number()
387 switch (LEXER_TO_ASCII_LOWERCASE (str_p[1])) in ecma_utf8_string_to_number()
391 return ecma_utf8_string_to_number_by_radix (str_p + 2, end_p, 16); in ecma_utf8_string_to_number()
[all …]
/third_party/boost/libs/math/minimax/
Dmain.cpp541 if(parse(line.c_str(), str_p("quit"), space_p).full) in BOOST_AUTO_TEST_CASE()
546 str_p("range")[assign_a(started, false)] && real_p[assign_a(a)] && real_p[assign_a(b)] in BOOST_AUTO_TEST_CASE()
548 str_p("relative")[assign_a(started, false)][assign_a(rel_error, true)] in BOOST_AUTO_TEST_CASE()
550 str_p("absolute")[assign_a(started, false)][assign_a(rel_error, false)] in BOOST_AUTO_TEST_CASE()
552 str_p("pin")[assign_a(started, false)] && str_p("true")[assign_a(pin, true)] in BOOST_AUTO_TEST_CASE()
554 str_p("pin")[assign_a(started, false)] && str_p("false")[assign_a(pin, false)] in BOOST_AUTO_TEST_CASE()
556 str_p("pin")[assign_a(started, false)] && str_p("1")[assign_a(pin, true)] in BOOST_AUTO_TEST_CASE()
558 str_p("pin")[assign_a(started, false)] && str_p("0")[assign_a(pin, false)] in BOOST_AUTO_TEST_CASE()
560 str_p("pin")[assign_a(started, false)][assign_a(pin, true)] in BOOST_AUTO_TEST_CASE()
562str_p("order")[assign_a(started, false)] && uint_p[assign_a(orderN)] && uint_p[assign_a(orderD)] in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-date.c55 ecma_date_parse_date_chars (const lit_utf8_byte_t **str_p, /**< pointer to the cesu8 string */ in ecma_date_parse_date_chars() argument
62 const lit_utf8_byte_t *str_start_p = *str_p; in ecma_date_parse_date_chars()
66 if (*str_p >= str_end_p || !lit_char_is_decimal_digit (lit_cesu8_read_next (str_p))) in ecma_date_parse_date_chars()
72 …ecma_number_t parsed_number = ecma_utf8_string_to_number (str_start_p, (lit_utf8_size_t) (*str_p -… in ecma_date_parse_date_chars()
88 ecma_date_parse_special_char (const lit_utf8_byte_t **str_p, /**< pointer to the cesu8 string */ in ecma_date_parse_special_char() argument
92 if ((*str_p < str_end_p) && (**str_p == expected_char)) in ecma_date_parse_special_char()
94 (*str_p)++; in ecma_date_parse_special_char()
110 ecma_date_parse_year (const lit_utf8_byte_t **str_p, /**< pointer to the cesu8 string */ in ecma_date_parse_year() argument
113 bool is_year_sign_negative = ecma_date_parse_special_char (str_p, str_end_p, '-'); in ecma_date_parse_year()
114 const lit_utf8_byte_t *str_start_p = *str_p; in ecma_date_parse_year()
[all …]
Decma-builtin-intrinsic.c109 ecma_string_t *str_p = ecma_op_to_string (routine_arg_1); in ecma_builtin_intrinsic_dispatch_routine() local
111 if (JERRY_UNLIKELY (str_p == NULL)) in ecma_builtin_intrinsic_dispatch_routine()
116 ECMA_STRING_TO_UTF8_STRING (str_p, string_buff, string_buff_size); in ecma_builtin_intrinsic_dispatch_routine()
131 ecma_deref_ecma_string (str_p); in ecma_builtin_intrinsic_dispatch_routine()
Decma-builtin-json.c777 const lit_utf8_byte_t *str_p = string_buff; in ecma_builtin_json_quote() local
779 const lit_utf8_byte_t *str_end_p = str_p + string_buff_size; in ecma_builtin_json_quote()
783 while (str_p < str_end_p) in ecma_builtin_json_quote()
785 lit_utf8_byte_t c = *str_p++; in ecma_builtin_json_quote()
791 (lit_utf8_size_t) (str_p - regular_str_start_p - 1)); in ecma_builtin_json_quote()
792 regular_str_start_p = str_p; in ecma_builtin_json_quote()
800 (lit_utf8_size_t) (str_p - regular_str_start_p - 1)); in ecma_builtin_json_quote()
801 regular_str_start_p = str_p; in ecma_builtin_json_quote()
1203 ecma_string_t *str_p = ecma_op_to_string (value); in ecma_builtin_json_serialize_property() local
1206 if (JERRY_UNLIKELY (str_p == NULL)) in ecma_builtin_json_serialize_property()
[all …]
Decma-builtin-global.c816 ecma_string_t *str_p = ecma_op_to_string (routine_arg_1); in ecma_builtin_global_dispatch_routine() local
818 if (JERRY_UNLIKELY (str_p == NULL)) in ecma_builtin_global_dispatch_routine()
827 ECMA_STRING_TO_UTF8_STRING (str_p, string_buff, string_buff_size); in ecma_builtin_global_dispatch_routine()
843 ecma_deref_ecma_string (str_p); in ecma_builtin_global_dispatch_routine()
847 lit_utf8_size_t input_size = ecma_string_get_size (str_p); in ecma_builtin_global_dispatch_routine()
853 ecma_string_to_utf8_bytes (str_p, input_start_p, input_size); in ecma_builtin_global_dispatch_routine()
895 ecma_deref_ecma_string (str_p); in ecma_builtin_global_dispatch_routine()
/third_party/boost/libs/serialization/src/
Dbasic_xml_grammar.ipp297 str_p(L"&#") >> uint_p [xml::append_char<StringType>(rv.contents)] >> L';'
300 str_p(L"&#x") >> hex_p [xml::append_char<StringType>(rv.contents)] >> L';'
304 AmpRef = str_p(L"&amp;")[xml::append_lit<StringType, L'&'>(rv.contents)];
305 LTRef = str_p(L"&lt;")[xml::append_lit<StringType, L'<'>(rv.contents)];
306 GTRef = str_p(L"&gt;")[xml::append_lit<StringType, L'>'>(rv.contents)];
307 AposRef = str_p(L"&apos;")[xml::append_lit<StringType, L'\''>(rv.contents)];
308 QuoteRef = str_p(L"&quot;")[xml::append_lit<StringType, L'"'>(rv.contents)];
325 str_p(BOOST_ARCHIVE_XML_CLASS_ID()) >> NameTail
333 str_p(BOOST_ARCHIVE_XML_OBJECT_ID())
335 str_p(BOOST_ARCHIVE_XML_OBJECT_REFERENCE())
[all …]
/third_party/boost/tools/quickbook/src/
Dsyntax_highlight.cpp268 cl::str_p("``") [pre_escape_back] in definition()
276 >> cl::str_p("``") in definition()
308 = cl::str_p("//") [span_start("comment")] in definition()
314 | cl::str_p("/*") [span_start("comment")] in definition()
316 | (+(cl::anychar_p - (cl::str_p("*/") | "``"))) in definition()
319 >> (!cl::str_p("*/")) [span_end] in definition()
429 cl::str_p("``") [pre_escape_back] in definition()
437 >> cl::str_p("``") in definition()
461 = cl::str_p("#") [span_start("comment")] in definition()
478 = cl::as_lower_d[cl::str_p("u") >> ! cl::str_p("r")] in definition()
[all …]
Dutils.cpp79 | cl::str_p("amp;") [append_char(self, '&')] in definition()
80 | cl::str_p("apos;") [append_char(self, '\'')] in definition()
81 | cl::str_p("gt;") [append_char(self, '>')] in definition()
82 | cl::str_p("lt;") [append_char(self, '<')] in definition()
83 | cl::str_p("quot;") [append_char(self, '"')] in definition()
Dmain_grammar.cpp573 cl::str_p("----") in init_main()
709 ( cl::str_p('`') in init_main()
719 | cl::str_p('`') in init_main()
752 +(local.brackets_1_4 | (cl::anychar_p - (cl::str_p("..") | ']'))) in init_main()
769 … +(local.brackets_1_5 | ('\\' >> cl::anychar_p) | (cl::anychar_p - (cl::str_p("..") | '[' | ']'))) in init_main()
773 … +(local.brackets_1_5 | ('\\' >> cl::anychar_p) | (cl::anychar_p - (cl::str_p('[') | ']'))) in init_main()
943 cl::str_p("\\n") [break_] in init_main()
944 | cl::str_p("\\ ") // ignore an escaped space in init_main()
953 >> ( cl::str_p("'''") in init_main()
960 cl::str_p("\\n") in init_main()
[all …]
/third_party/jerryscript/jerry-core/vm/
Dvm-utils.c118 ecma_string_t *str_p = ecma_get_magic_string (LIT_MAGIC_STRING__EMPTY); in vm_get_backtrace() local
122 func_name = ecma_concat_ecma_strings (func_name, str_p); in vm_get_backtrace()
125 ecma_deref_ecma_string(str_p); in vm_get_backtrace()
128 ecma_fast_array_set_property (array_p, index, ecma_make_string_value (str_p)); in vm_get_backtrace()
129 ecma_deref_ecma_string (str_p); in vm_get_backtrace()
/third_party/boost/libs/spirit/classic/example/fundamental/
Dcomments.cpp149 str_p("<b>") in main()
157 str_p("</b>") in main()
209 str_p("<b>"), in main()
210 (*(body_text - str_p("</b>")))[actor_string(bodydirect)], in main()
211 str_p("</b>") in main()
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-regexp-object.c512 const lit_utf8_byte_t **str_p) /**< reference to string pointer */ in ecma_regexp_advance() argument
514 JERRY_ASSERT (str_p != NULL); in ecma_regexp_advance()
515 lit_code_point_t cp = lit_cesu8_read_next (str_p); in ecma_regexp_advance()
520 && *str_p < re_ctx_p->input_end_p) in ecma_regexp_advance()
522 const ecma_char_t next_ch = lit_cesu8_peek_next (*str_p); in ecma_regexp_advance()
526 *str_p += LIT_UTF8_MAX_BYTES_IN_CODE_UNIT; in ecma_regexp_advance()
541 ecma_regexp_unicode_advance (const lit_utf8_byte_t **str_p, /**< reference to string pointer */ in ecma_regexp_unicode_advance() argument
544 JERRY_ASSERT (str_p != NULL); in ecma_regexp_unicode_advance()
545 const lit_utf8_byte_t *current_p = *str_p; in ecma_regexp_unicode_advance()
559 *str_p = current_p; in ecma_regexp_unicode_advance()
[all …]
Decma-string-object.c53 ecma_string_t *str_p = ecma_op_to_string (arguments_list_p[0]); in ecma_op_create_string_object() local
55 if (JERRY_UNLIKELY (str_p == NULL)) in ecma_op_create_string_object()
60 prim_value = ecma_make_string_value (str_p); in ecma_op_create_string_object()
Decma-symbol-object.c59 ecma_string_t *str_p = ecma_op_to_string (arguments_list_p[0]); in ecma_op_create_symbol() local
62 if (JERRY_UNLIKELY (str_p == NULL)) in ecma_op_create_symbol()
67 string_desc = ecma_make_string_value (str_p); in ecma_op_create_symbol()

123