Lines Matching refs:StringPiece
36 using ::android::StringPiece;
51 parsed_type = ParseResourceNamedType(StringPiece(type, type_len)); in ToResourceNamedType()
112 bool ParseResourceName(StringPiece str, ResourceNameRef* out_ref, bool* out_private) { in ParseResourceName()
124 StringPiece package; in ParseResourceName()
125 StringPiece type; in ParseResourceName()
126 StringPiece entry; in ParseResourceName()
153 bool ParseReference(StringPiece str, ResourceNameRef* out_ref, bool* out_create, in ParseReference()
155 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseReference()
200 bool IsReference(StringPiece str) { in IsReference()
204 bool ParseAttributeReference(StringPiece str, ResourceNameRef* out_ref) { in ParseAttributeReference()
205 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseAttributeReference()
211 StringPiece package; in ParseAttributeReference()
212 StringPiece type; in ParseAttributeReference()
213 StringPiece entry; in ParseAttributeReference()
237 bool IsAttributeReference(StringPiece str) { in IsAttributeReference()
249 std::optional<Reference> ParseStyleParentReference(StringPiece str, std::string* out_error) { in ParseStyleParentReference()
254 StringPiece name = str; in ParseStyleParentReference()
273 StringPiece type_str; in ParseStyleParentReference()
298 std::optional<Reference> ParseXmlAttributeName(StringPiece str) { in ParseXmlAttributeName()
299 StringPiece trimmed_str = util::TrimWhitespace(str); in ParseXmlAttributeName()
311 StringPiece package; in ParseXmlAttributeName()
312 StringPiece name; in ParseXmlAttributeName()
315 package = StringPiece(start, p - start); in ParseXmlAttributeName()
316 name = StringPiece(p + 1, end - (p + 1)); in ParseXmlAttributeName()
327 std::unique_ptr<Reference> TryParseReference(StringPiece str, bool* out_create) { in TryParseReference()
345 std::unique_ptr<Item> TryParseNullOrEmpty(StringPiece str) { in TryParseNullOrEmpty()
346 const StringPiece trimmed_str(util::TrimWhitespace(str)); in TryParseNullOrEmpty()
366 std::unique_ptr<BinaryPrimitive> TryParseEnumSymbol(const Attribute* enum_attr, StringPiece str) { in TryParseEnumSymbol()
367 StringPiece trimmed_str(util::TrimWhitespace(str)); in TryParseEnumSymbol()
382 std::unique_ptr<BinaryPrimitive> TryParseFlagSymbol(const Attribute* flag_attr, StringPiece str) { in TryParseFlagSymbol()
392 for (StringPiece part : util::Tokenize(str, '|')) { in TryParseFlagSymbol()
393 StringPiece trimmed_part = util::TrimWhitespace(part); in TryParseFlagSymbol()
428 std::unique_ptr<BinaryPrimitive> TryParseColor(StringPiece str) { in TryParseColor()
429 StringPiece color_str(util::TrimWhitespace(str)); in TryParseColor()
483 std::optional<bool> ParseBool(StringPiece str) { in ParseBool()
484 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseBool()
494 std::optional<uint32_t> ParseInt(StringPiece str) { in ParseInt()
503 std::optional<ResourceId> ParseResourceId(StringPiece str) { in ParseResourceId()
504 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseResourceId()
519 std::optional<int> ParseSdkVersion(StringPiece str) { in ParseSdkVersion()
520 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseSdkVersion()
535 const StringPiece::const_iterator begin = std::begin(trimmed_str); in ParseSdkVersion()
536 const StringPiece::const_iterator end = std::end(trimmed_str); in ParseSdkVersion()
537 const StringPiece::const_iterator codename_end = std::find(begin, end, '.'); in ParseSdkVersion()
538 entry = GetDevelopmentSdkCodeNameVersion(StringPiece(begin, codename_end - begin)); in ParseSdkVersion()
545 std::unique_ptr<BinaryPrimitive> TryParseBool(StringPiece str) { in TryParseBool()
558 std::unique_ptr<BinaryPrimitive> TryParseInt(StringPiece str) { in TryParseInt()
571 std::unique_ptr<BinaryPrimitive> TryParseFloat(StringPiece str) { in TryParseFloat()
622 android::IDiagnostics* diag, StringPiece value, uint32_t type_mask, in TryParseItemForAttribute()
710 android::IDiagnostics* diag, StringPiece str, const Attribute* attr, in TryParseItemForAttribute()