/third_party/rust/crates/cxx/gen/cmd/src/ |
H A D | cfg.rs | 4 use syn::parse::ParseStream; 76 pub fn parse(input: ParseStream) -> syn::Result<(String, CfgValue)> { in parse() functions 77 let ident: Ident = input.parse()?; in parse() 82 input.parse::<Token![=]>()?; in parse() 85 let lit: LitBool = input.parse()?; in parse() 88 let lit: LitStr = input.parse()?; in parse()
|
/third_party/rust/crates/cxx/gen/cmd/src/syntax/ |
H A D | namespace.rs | 6 use syn::parse::{Error, Parse, ParseStream, Result}; 32 input.parse::<kw::namespace>()?; in parse_bridge_attr_namespace() 33 input.parse::<Token![=]>()?; in parse_bridge_attr_namespace() 34 let namespace = input.parse::<Namespace>()?; in parse_bridge_attr_namespace() 35 input.parse::<Option<Token![,]>>()?; in parse_bridge_attr_namespace() 79 fn parse(input: ParseStream) -> Result<Self> { in parse() functions
|
/third_party/rust/crates/cxx/syntax/ |
H A D | namespace.rs | 6 use syn::parse::{Error, Parse, ParseStream, Result}; 32 input.parse::<kw::namespace>()?; in parse_bridge_attr_namespace() 33 input.parse::<Token![=]>()?; in parse_bridge_attr_namespace() 34 let namespace = input.parse::<Namespace>()?; in parse_bridge_attr_namespace() 35 input.parse::<Option<Token![,]>>()?; in parse_bridge_attr_namespace() 79 fn parse(input: ParseStream) -> Result<Self> { in parse() functions
|
/third_party/skia/modules/svg/src/ |
H A D | SkSVGPattern.cpp | 19 this->setX(SkSVGAttributeParser::parse<SkSVGLength>("x", name, value)) || in parseAndSetAttribute() 20 this->setY(SkSVGAttributeParser::parse<SkSVGLength>("y", name, value)) || in parseAndSetAttribute() 21 this->setWidth(SkSVGAttributeParser::parse<SkSVGLength>("width", name, value)) || in parseAndSetAttribute() 22 this->setHeight(SkSVGAttributeParser::parse<SkSVGLength>("height", name, value)) || in parseAndSetAttribute() 23 this->setPatternTransform(SkSVGAttributeParser::parse<SkSVGTransformType>( in parseAndSetAttribute() 25 this->setHref(SkSVGAttributeParser::parse<SkSVGIRI>("xlink:href", name, value)); in parseAndSetAttribute()
|
H A D | SkSVGImage.cpp | 18 this->setX(SkSVGAttributeParser::parse<SkSVGLength>("x", n, v)) || in parseAndSetAttribute() 19 this->setY(SkSVGAttributeParser::parse<SkSVGLength>("y", n, v)) || in parseAndSetAttribute() 20 this->setWidth(SkSVGAttributeParser::parse<SkSVGLength>("width", n, v)) || in parseAndSetAttribute() 21 this->setHeight(SkSVGAttributeParser::parse<SkSVGLength>("height", n, v)) || in parseAndSetAttribute() 22 this->setHref(SkSVGAttributeParser::parse<SkSVGIRI>("xlink:href", n, v)) || in parseAndSetAttribute() 23 this->setPreserveAspectRatio(SkSVGAttributeParser::parse<SkSVGPreserveAspectRatio>( in parseAndSetAttribute()
|
H A D | SkSVGFeColorMatrix.cpp | 20 SkSVGAttributeParser::parse<SkSVGFeColorMatrixType>("type", name, value)) || in parseAndSetAttribute() 22 SkSVGAttributeParser::parse<SkSVGFeColorMatrixValues>("values", name, value)); in parseAndSetAttribute() 100 template <> bool SkSVGAttributeParser::parse(SkSVGFeColorMatrixValues* values) { in parse() function in SkSVGAttributeParser 102 if (!this->parse(&value)) { in parse() 108 if (!this->parse(&value) || values->count() >= 20) { in parse() 117 template <> bool SkSVGAttributeParser::parse(SkSVGFeColorMatrixType* type) { in parse() function in SkSVGAttributeParser
|
H A D | SkSVGLinearGradient.cpp | 17 this->setX1(SkSVGAttributeParser::parse<SkSVGLength>("x1", name, value)) || in parseAndSetAttribute() 18 this->setY1(SkSVGAttributeParser::parse<SkSVGLength>("y1", name, value)) || in parseAndSetAttribute() 19 this->setX2(SkSVGAttributeParser::parse<SkSVGLength>("x2", name, value)) || in parseAndSetAttribute() 20 this->setY2(SkSVGAttributeParser::parse<SkSVGLength>("y2", name, value)); in parseAndSetAttribute()
|
H A D | SkSVGEllipse.cpp | 17 this->setCx(SkSVGAttributeParser::parse<SkSVGLength>("cx", n, v)) || in parseAndSetAttribute() 18 this->setCy(SkSVGAttributeParser::parse<SkSVGLength>("cy", n, v)) || in parseAndSetAttribute() 19 this->setRx(SkSVGAttributeParser::parse<SkSVGLength>("rx", n, v)) || in parseAndSetAttribute() 20 this->setRy(SkSVGAttributeParser::parse<SkSVGLength>("ry", n, v)); in parseAndSetAttribute()
|
H A D | SkSVGFeLighting.cpp | 20 SkSVGAttributeParser::parse<SkSVGNumberType>("surfaceScale", n, v)) || in parseAndSetAttribute() 21 this->setKernelUnitLength(SkSVGAttributeParser::parse<SkSVGFeLighting::KernelUnitLength>( in parseAndSetAttribute() 26 bool SkSVGAttributeParser::parse<SkSVGFeLighting::KernelUnitLength>( in parse() function in SkSVGAttributeParser 29 if (!this->parse(&values)) { in parse() 88 SkSVGAttributeParser::parse<SkSVGNumberType>("specularConstant", n, v)) || in parseAndSetAttribute() 90 SkSVGAttributeParser::parse<SkSVGNumberType>("specularExponent", n, v)); in parseAndSetAttribute() 144 SkSVGAttributeParser::parse<SkSVGNumberType>("diffuseConstant", n, v)); in parseAndSetAttribute()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
H A D | eap_ttls.c | 887 struct ttls_parse_avp *parse) in eap_ttls_parse_attr_eap() 890 if (parse->eapdata == NULL) { in eap_ttls_parse_attr_eap() 891 parse->eapdata = os_memdup(dpos, dlen); in eap_ttls_parse_attr_eap() 892 if (parse->eapdata == NULL) { in eap_ttls_parse_attr_eap() 897 parse->eap_len = dlen; in eap_ttls_parse_attr_eap() 899 u8 *neweap = os_realloc(parse->eapdata, parse->eap_len + dlen); in eap_ttls_parse_attr_eap() 905 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_parse_attr_eap() 906 parse->eapdata = neweap; in eap_ttls_parse_attr_eap() 907 parse in eap_ttls_parse_attr_eap() 886 eap_ttls_parse_attr_eap(const u8 *dpos, size_t dlen, struct ttls_parse_avp *parse) eap_ttls_parse_attr_eap() argument 914 eap_ttls_parse_avp(u8 *pos, size_t left, struct ttls_parse_avp *parse) eap_ttls_parse_avp() argument 1001 eap_ttls_parse_avps(struct wpabuf *in_decrypted, struct ttls_parse_avp *parse) eap_ttls_parse_avps() argument 1087 eap_ttls_process_phase2_eap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse, struct wpabuf **resp) eap_ttls_process_phase2_eap() argument 1143 eap_ttls_process_phase2_mschapv2(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse) eap_ttls_process_phase2_mschapv2() argument 1205 eap_ttls_process_tnc_start(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse, struct wpabuf **resp) eap_ttls_process_tnc_start() argument 1236 eap_ttls_process_decrypted(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, u8 identifier, struct ttls_parse_avp *parse, struct wpabuf *in_decrypted, struct wpabuf **out_data) eap_ttls_process_decrypted() argument 1401 struct ttls_parse_avp parse; eap_ttls_decrypt() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
H A D | eap_ttls.c | 916 struct ttls_parse_avp *parse) in eap_ttls_parse_attr_eap() 919 if (parse->eapdata == NULL) { in eap_ttls_parse_attr_eap() 920 parse->eapdata = os_memdup(dpos, dlen); in eap_ttls_parse_attr_eap() 921 if (parse->eapdata == NULL) { in eap_ttls_parse_attr_eap() 926 parse->eap_len = dlen; in eap_ttls_parse_attr_eap() 928 u8 *neweap = os_realloc(parse->eapdata, parse->eap_len + dlen); in eap_ttls_parse_attr_eap() 934 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_parse_attr_eap() 935 parse->eapdata = neweap; in eap_ttls_parse_attr_eap() 936 parse in eap_ttls_parse_attr_eap() 915 eap_ttls_parse_attr_eap(const u8 *dpos, size_t dlen, struct ttls_parse_avp *parse) eap_ttls_parse_attr_eap() argument 943 eap_ttls_parse_avp(u8 *pos, size_t left, struct ttls_parse_avp *parse) eap_ttls_parse_avp() argument 1030 eap_ttls_parse_avps(struct wpabuf *in_decrypted, struct ttls_parse_avp *parse) eap_ttls_parse_avps() argument 1116 eap_ttls_process_phase2_eap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse, struct wpabuf **resp) eap_ttls_process_phase2_eap() argument 1172 eap_ttls_process_phase2_mschapv2(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse) eap_ttls_process_phase2_mschapv2() argument 1234 eap_ttls_process_tnc_start(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse, struct wpabuf **resp) eap_ttls_process_tnc_start() argument 1265 eap_ttls_process_decrypted(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, u8 identifier, struct ttls_parse_avp *parse, struct wpabuf *in_decrypted, struct wpabuf **out_data) eap_ttls_process_decrypted() argument 1430 struct ttls_parse_avp parse; eap_ttls_decrypt() local [all...] |
/third_party/musl/tools/api_cmp_tool/ |
H A D | compare.py | 16 Get and parse the parameters from the console 18 parse = argparse.ArgumentParser(prog='python3.8 compare.py') 19 parse.add_argument('-l', 23 parse.add_argument('-i', 27 parse.add_argument('-m', type=str, help='input macros file path') 28 parse.add_argument('-b', type=str, help='input blacklist file path') 29 parse.add_argument('-o', type=str, help='result file output path') 30 args = parse.parse_args() 172 parser = index.parse(i, args=compile_args) 180 parser_temp = index_temp.parse( [all...] |
/third_party/rust/crates/version_check/src/ |
H A D | lib.rs | 150 match Version::parse(&version_str) { in triple() 151 Some(version) => match Channel::parse(&version_str) { in triple() 152 Some(channel) => match Date::parse(&date_str) { in triple() 172 match (Date::read(), Date::parse(min_date)) { in is_min_date() 188 match (Date::read(), Date::parse(max_date)) { in is_max_date() 204 match (Date::read(), Date::parse(date)) { in is_exact_date() 220 match (Version::read(), Version::parse(min_version)) { in is_min_version() 236 match (Version::read(), Version::parse(max_version)) { in is_max_version() 251 match (Version::read(), Version::parse(version)) { in is_exact_version() 332 panic!("{:?} didn't parse fo [all...] |
/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_dm_anonymous.cpp | 185 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); in HWTEST_F() 203 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); in HWTEST_F() 221 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); in HWTEST_F() 239 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); in HWTEST_F() 257 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); in HWTEST_F() 275 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); in HWTEST_F() 293 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); in HWTEST_F() 324 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); in HWTEST_F() 344 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); in HWTEST_F() 364 nlohmann::json jsonObj = nlohmann::json::parse(st in HWTEST_F() [all...] |
/third_party/json/tests/src/ |
H A D | unit-regression1.cpp | 119 json j = json::parse(s); 194 SECTION("issue #76 - dump() / parse() not idempotent") 204 json parsed_fields = json::parse(payload); 223 CHECK(fields == json::parse(fields.dump())); 265 j = custom_json::parse("4294967296"); // 2^32 275 j = custom_json::parse("-2147483649"); // -2^31 386 CHECK(json::parse("\"\\ud80c\\udc60abc\"").get<json::string_t>() == "\xf0\x93\x81\xa0\x61\x62\x63"); 441 j = json::parse("-0.0"); 444 j = json::parse("2.22507385850720113605740979670913197593481954635164564e-308"); 447 j = json::parse("0.99999999999999994448884876874217297881841659545898437 [all...] |
H A D | unit-testsuites.cpp | 63 CHECK_THROWS_AS(_ = json::parse(f), json::parse_error&); 113 CHECK(json::parse(json_string)[0].get<double>() == Approx(expected)); 245 CHECK(json::parse(json_string)[0].get<std::string>() == expected); 305 json j = json::parse(json_string); 368 CHECK_NOTHROW(_ = json::parse(f.get())); 375 CHECK_NOTHROW(_ = json::parse(f.get())); 382 CHECK_NOTHROW(_ = json::parse(f.get())); 389 CHECK_NOTHROW(_ = json::parse(f.get())); 396 CHECK_NOTHROW(_ = json::parse(f.get())); 406 CHECK(json::parse("\"\\u005 [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
H A D | DateFormatTest.java | 310 * ps. the Method Calendar.getTime() used by SimpleDateFormat.parse() always in TestTwoDigitYearDSTParse() 322 Date d = fmt.parse(s); in TestTwoDigitYearDSTParse() 597 * General parse/format tests. Add test cases as needed. 606 // Both format and parse should round HALF_UP in TestGeneral() 619 // any zone pattern should parse any zone in TestGenericTime() 639 // time to parse does not really exist, PT interpreted as earlier time in TestGenericTime() 647 // time to parse is ambiguous, PT interpreted as later time in TestGenericTime() 665 logln("cross format/parse tests"); in TestGenericTime() 688 Date d = univ.parse(times[i]); in TestGenericTime() 695 Date t = formats[k].parse(tes in TestGenericTime() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
H A D | DateFormatTest.java | 313 * ps. the Method Calendar.getTime() used by SimpleDateFormat.parse() always in TestTwoDigitYearDSTParse() 325 Date d = fmt.parse(s); in TestTwoDigitYearDSTParse() 600 * General parse/format tests. Add test cases as needed. 609 // Both format and parse should round HALF_UP in TestGeneral() 622 // any zone pattern should parse any zone in TestGenericTime() 642 // time to parse does not really exist, PT interpreted as earlier time in TestGenericTime() 650 // time to parse is ambiguous, PT interpreted as later time in TestGenericTime() 668 logln("cross format/parse tests"); in TestGenericTime() 691 Date d = univ.parse(times[i]); in TestGenericTime() 698 Date t = formats[k].parse(tes in TestGenericTime() [all...] |
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/model/ |
H A D | FormatSpecTest.java | 88 FormatTemplate t = FormatTemplate.parse("(#) XXX - XXX**"); in testTemplate_splitPrefix() 98 FormatTemplate t = FormatTemplate.parse("XXX XX-XX"); in testTemplate_noPrefix() 108 FormatTemplate t = FormatTemplate.parse("{XXX>123} XX-XX"); in testTemplate_replacementNoNationalPrefix() 118 FormatTemplate t = FormatTemplate.parse("#{XXX>123} XX-XX"); in testTemplate_replacementWithNationalPrefix() 128 FormatTemplate t = FormatTemplate.parse("XXX {XX>ABC} XX"); in testTemplate_replacementNotFirstGroup() 140 FormatTemplate t = FormatTemplate.parse("{XX>}XXX XXXX"); in testTemplate_removeFirstGroupViaReplacement()
|
/third_party/rust/crates/syn/src/ |
H A D | mac.rs | 11 use crate::parse::{Parse, ParseStream, Parser, Result}; 56 /// use syn::parse::{Error, Parse, ParseStream, Result}; 70 /// fn parse(input: ParseStream) -> Result<Self> { 75 /// format_string = input.parse()?; 77 /// input.parse::<Token![,]>()?; 84 /// input.parse::<Token![=]>()?; 85 /// let value: Expr = input.parse()?; 90 /// input.parse::<Token![,]>()?; 94 /// positional_args.push(input.parse()?); 130 self.parse_body_with(T::parse) in parse_body() 170 fn parse(input: ParseStream) -> Result<Self> { parse() functions [all...] |
H A D | lit.rs | 4 use crate::parse::{Parse, Parser}; 161 /// return lit_str.parse().map(Some); 172 pub fn parse<T: Parse>(&self) -> Result<T> { in parse() functions 173 self.parse_with(T::parse) in parse() 369 Some(parse) => parse, in new() 373 let mut token: Literal = repr.parse().unwrap(); in new() 390 /// This is equivalent to `lit.base10_digits().parse()` except that the 396 /// use syn::parse::{Parse, ParseStream, Result}; 403 /// fn parse(inpu 817 fn parse(input: ParseStream) -> Result<Self> { parse() functions 888 fn parse(input: ParseStream) -> Result<Self> { parse() functions 899 fn parse(input: ParseStream) -> Result<Self> { parse() functions 910 fn parse(input: ParseStream) -> Result<Self> { parse() functions 921 fn parse(input: ParseStream) -> Result<Self> { parse() functions 932 fn parse(input: ParseStream) -> Result<Self> { parse() functions 943 fn parse(input: ParseStream) -> Result<Self> { parse() functions 954 fn parse(input: ParseStream) -> Result<Self> { parse() functions [all...] |
/third_party/rust/crates/env_logger/src/filter/ |
H A D | mod.rs | 11 //! Call [`Builder::parse`] to parse directives from a string when constructing 32 //! builder.parse(filter); 58 //! [`Builder::parse`]: struct.Builder.html#method.parse 79 /// Use the [`Builder`] type to parse and construct a `Filter`. 89 /// It can be used to parse a set of directives from a string before building 103 /// builder.parse(&rust_log); 186 builder.parse(&s); in from_env() 216 pub fn parse( functions [all...] |
/third_party/python/Tools/scripts/ |
H A D | google.py | 10 import urllib.parse namespace 18 return urllib.parse.quote_plus(arg) 21 url = urllib.parse.urljoin('https://www.google.com/search', '?q=' + qstring)
|
/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/ |
H A D | profile_authority_test.cpp | 113 nlohmann::json::parse(jsonStr.c_str(), nullptr, false); in LoadAuthorityByStr() 298 nlohmann::json jsonObject = nlohmann::json::parse(INVALID_INTERFACE_SERVICE, nullptr, false); in HWTEST_F() 314 nlohmann::json jsonObject = nlohmann::json::parse(INVALID_INTERFACE_VALUE, nullptr, false); in HWTEST_F() 322 jsonObject = nlohmann::json::parse(EMPTY_INTERFACE_VALUE, nullptr, false); in HWTEST_F() 337 nlohmann::json jsonObject = nlohmann::json::parse(TEST_TRUST_GROUP_EMPTY, nullptr, false); in HWTEST_F() 344 jsonObject = nlohmann::json::parse(INVALID_SERVIES_SPE, nullptr, false); in HWTEST_F() 350 jsonObject = nlohmann::json::parse(INVALID_SERVIES_PRE, nullptr, false); in HWTEST_F() 405 nlohmann::json jsonObject = nlohmann::json::parse(TEST_TRUST_GROUP, nullptr, false); in HWTEST_F() 422 nlohmann::json jsonObject = nlohmann::json::parse(TEST_TRUST_GROUP_EMPTY, nullptr, false); in HWTEST_F()
|
/third_party/rust/crates/clap/clap_derive/src/ |
H A D | attr.rs | 9 parse::{Parse, ParseStream}, 75 fn parse(input: ParseStream) -> syn::Result<Self> { in parse() functions 76 let name: Ident = input.parse()?; in parse() 110 let assign_token = input.parse::<Token![=]>()?; // skip '=' in parse() 112 let lit: LitStr = input.parse()?; in parse() 115 match input.parse::<Expr>() { in parse() 129 let method_args: Punctuated<_, _> = nested.parse_terminated(Expr::parse, Token![,])?; in parse()
|