Lines Matching refs:StringPiece
36 using ::android::StringPiece;
59 type = ParseResourceType(StringPiece(name_in.type8, name_in.typeLen)); in ToResourceName()
94 type = ParseResourceType(StringPiece(name_in.type, name_in.type_len)); in ToResourceName()
116 bool ParseResourceName(const StringPiece& str, ResourceNameRef* out_ref, in ParseResourceName()
129 StringPiece package; in ParseResourceName()
130 StringPiece type; in ParseResourceName()
131 StringPiece entry; in ParseResourceName()
158 bool ParseReference(const StringPiece& str, ResourceNameRef* out_ref, in ParseReference()
160 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseReference()
205 bool IsReference(const StringPiece& str) { in IsReference()
209 bool ParseAttributeReference(const StringPiece& str, ResourceNameRef* out_ref) { in ParseAttributeReference()
210 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseAttributeReference()
216 StringPiece package; in ParseAttributeReference()
217 StringPiece type; in ParseAttributeReference()
218 StringPiece entry; in ParseAttributeReference()
242 bool IsAttributeReference(const StringPiece& str) { in IsAttributeReference()
254 Maybe<Reference> ParseStyleParentReference(const StringPiece& str, in ParseStyleParentReference()
260 StringPiece name = str; in ParseStyleParentReference()
279 StringPiece type_str; in ParseStyleParentReference()
304 Maybe<Reference> ParseXmlAttributeName(const StringPiece& str) { in ParseXmlAttributeName()
305 StringPiece trimmed_str = util::TrimWhitespace(str); in ParseXmlAttributeName()
317 StringPiece package; in ParseXmlAttributeName()
318 StringPiece name; in ParseXmlAttributeName()
321 package = StringPiece(start, p - start); in ParseXmlAttributeName()
322 name = StringPiece(p + 1, end - (p + 1)); in ParseXmlAttributeName()
332 std::unique_ptr<Reference> TryParseReference(const StringPiece& str, in TryParseReference()
351 std::unique_ptr<Item> TryParseNullOrEmpty(const StringPiece& str) { in TryParseNullOrEmpty()
352 const StringPiece trimmed_str(util::TrimWhitespace(str)); in TryParseNullOrEmpty()
373 const StringPiece& str) { in TryParseEnumSymbol()
374 StringPiece trimmed_str(util::TrimWhitespace(str)); in TryParseEnumSymbol()
390 const StringPiece& str) { in TryParseFlagSymbol()
400 for (const StringPiece& part : util::Tokenize(str, '|')) { in TryParseFlagSymbol()
401 StringPiece trimmed_part = util::TrimWhitespace(part); in TryParseFlagSymbol()
436 std::unique_ptr<BinaryPrimitive> TryParseColor(const StringPiece& str) { in TryParseColor()
437 StringPiece color_str(util::TrimWhitespace(str)); in TryParseColor()
491 Maybe<bool> ParseBool(const StringPiece& str) { in ParseBool()
492 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseBool()
502 Maybe<uint32_t> ParseInt(const StringPiece& str) { in ParseInt()
511 Maybe<ResourceId> ParseResourceId(const StringPiece& str) { in ParseResourceId()
512 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseResourceId()
527 Maybe<int> ParseSdkVersion(const StringPiece& str) { in ParseSdkVersion()
528 StringPiece trimmed_str(util::TrimWhitespace(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()
545 const StringPiece::const_iterator codename_end = std::find(begin, end, '.'); in ParseSdkVersion()
553 std::unique_ptr<BinaryPrimitive> TryParseBool(const StringPiece& str) { in TryParseBool()
566 std::unique_ptr<BinaryPrimitive> TryParseInt(const StringPiece& str) { in TryParseInt()
579 std::unique_ptr<BinaryPrimitive> TryParseFloat(const StringPiece& str) { in TryParseFloat()
630 const StringPiece& value, uint32_t type_mask, in TryParseItemForAttribute()
691 const StringPiece& str, const Attribute* attr, in TryParseItemForAttribute()