Lines Matching refs:trimmed_str
160 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseReference() local
161 if (trimmed_str.empty()) { in ParseReference()
167 if (trimmed_str.data()[0] == '@') { in ParseReference()
169 if (trimmed_str.data()[1] == '+') { in ParseReference()
176 trimmed_str.substr(offset, trimmed_str.size() - offset), &name, in ParseReference()
210 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseAttributeReference() local
211 if (trimmed_str.empty()) { in ParseAttributeReference()
215 if (*trimmed_str.data() == '?') { in ParseAttributeReference()
219 if (!android::ExtractResourceName(trimmed_str.substr(1, trimmed_str.size() - 1), &package, in ParseAttributeReference()
305 StringPiece trimmed_str = util::TrimWhitespace(str); in ParseXmlAttributeName() local
306 const char* start = trimmed_str.data(); in ParseXmlAttributeName()
307 const char* const end = start + trimmed_str.size(); in ParseXmlAttributeName()
328 ref.name = ResourceName(package, ResourceType::kAttr, name.empty() ? trimmed_str : name); in ParseXmlAttributeName()
352 const StringPiece trimmed_str(util::TrimWhitespace(str)); in TryParseNullOrEmpty() local
353 if (trimmed_str == "@null") { in TryParseNullOrEmpty()
355 } else if (trimmed_str == "@empty") { in TryParseNullOrEmpty()
374 StringPiece trimmed_str(util::TrimWhitespace(str)); in TryParseEnumSymbol() local
379 if (trimmed_str == enum_symbol_resource_name.entry) { in TryParseEnumSymbol()
492 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseBool() local
493 if (trimmed_str == "true" || trimmed_str == "TRUE" || trimmed_str == "True") { in ParseBool()
495 } else if (trimmed_str == "false" || trimmed_str == "FALSE" || in ParseBool()
496 trimmed_str == "False") { in ParseBool()
512 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseResourceId() local
514 std::u16string str16 = util::Utf8ToUtf16(trimmed_str); in ParseResourceId()
528 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseSdkVersion() local
530 std::u16string str16 = util::Utf8ToUtf16(trimmed_str); in ParseSdkVersion()
537 Maybe<int> entry = GetDevelopmentSdkCodeNameVersion(trimmed_str); in ParseSdkVersion()
543 const StringPiece::const_iterator begin = std::begin(trimmed_str); in ParseSdkVersion()
544 const StringPiece::const_iterator end = std::end(trimmed_str); in ParseSdkVersion()
546 entry = GetDevelopmentSdkCodeNameVersion(trimmed_str.substr(begin, codename_end)); in ParseSdkVersion()