Home
last modified time | relevance | path

Searched refs:substr (Results 1 – 25 of 100) sorted by relevance

1234

/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp153 const StringPiece16 substr = text.substr(cursor, span->first_char - cursor); in PseudolocalizeStyledString() local
154 cursor += substr.size(); in PseudolocalizeStyledString()
157 std::string new_substr = util::Utf16ToUtf8(substr); in PseudolocalizeStyledString()
180 const StringPiece16 substr = text.substr(cursor, parent_span->last_char - cursor + 1); in PseudolocalizeStyledString() local
181 cursor += substr.size(); in PseudolocalizeStyledString()
184 std::string new_substr = util::Utf16ToUtf8(substr); in PseudolocalizeStyledString()
202 new_string += localizer.Text(util::Utf16ToUtf8(text.substr(cursor, text.size() - cursor))); in PseudolocalizeStyledString()
256 result += localizer_.Text(original_string.substr(start, len)); in Visit()
260 result += original_string.substr(section.start, section.end - section.start); in Visit()
267 result += localizer_.Text(original_string.substr(start, len)); in Visit()
/frameworks/minikin/tests/unittest/
DStringPieceTest.cpp86 TEST(StringPieceTest, substr) { in TEST() argument
88 EXPECT_EQ("", s.substr(0, 0)); in TEST()
89 EXPECT_EQ("a", s.substr(0, 1)); in TEST()
90 EXPECT_EQ("abc", s.substr(0, 3)); in TEST()
91 EXPECT_EQ("cde", s.substr(2, 3)); in TEST()
92 EXPECT_EQ("", s.substr(2, 0)); in TEST()
93 EXPECT_EQ("", s.substr(5, 0)); in TEST()
/frameworks/compile/mclinker/lib/Support/
DPath.cpp161 return Path(m_PathName.substr(0, end_pos)); in parent_path()
169 return Path(m_PathName.substr(pos)); in filename()
177 Path result_path(m_PathName.substr(begin_pos, end_pos - begin_pos)); in stem()
185 return Path(m_PathName.substr(pos)); in extension()
/frameworks/base/cmds/incident_helper/src/
Dih_util.cpp38 return s.substr(head, tail - head + 1); in trim()
71 std::string word = (*func) (line.substr(base, found - base)); in split()
139 record.push_back(trimDefault(line.substr(lastIndex, idx - lastIndex))); in parseRecordByColumns()
151 record.push_back(trimDefault(line.substr(beginning, lineSize - beginning))); in parseRecordByColumns()
186 line->assign(trimDefault(line->substr(j))); in stripPrefix()
207 line->assign(trimDefault(line->substr(0, j+1))); in stripSuffix()
214 std::string head = line->substr(0); in behead()
218 std::string head = line->substr(0, found); in behead()
220 line->assign(line->substr(found)); in behead()
/frameworks/av/media/codec2/vndk/util/
DC2ParamUtils.cpp73 C2_LOG(VERBOSE) << name.substr(0, word_start) << "|" in camelCaseToDashed()
74 << name.substr(word_start, ix - word_start) << "[" in camelCaseToDashed()
75 << name.substr(ix, 1) << "]" << name.substr(ix + 1) in camelCaseToDashed()
/frameworks/base/tools/streaming_proto/
Dstring_utils.cpp76 return str.substr(start, end-start); in file_base_name()
100 string part = str.substr(base, found - base); in split()
119 return str.substr(i); in stripPrefix()
/frameworks/native/cmds/installd/
Dsystem_properties.h40 std::string key = line.substr(0, equals_pos); in Load()
41 std::string value = line.substr(equals_pos + 1, in Load()
/frameworks/native/cmds/lshal/
Dutils.cpp33 components.push_back(s.substr(startPos, matchPos - startPos)); in split()
38 components.push_back(s.substr(startPos)); in split()
/frameworks/minikin/libs/minikin/
DLineBreakerUtil.h77 hyphenate(textBuf.substr(hyphenationTargetRange), hyphenator); in populateHyphenationPoints()
85 U16StringPiece firstText = textBuf.substr(hyphenPart.first); in populateHyphenationPoints()
86 U16StringPiece secondText = textBuf.substr(hyphenPart.second); in populateHyphenationPoints()
DStringPiece.h40 inline StringPiece substr(size_t from, size_t length) const { in substr() function
100 return mString.substr(searchFrom, mCurrent - searchFrom); in next()
/frameworks/rs/script_api/
DScanner.cpp158 *documentation = s->substr(first, last - first); in parseDocumentation()
170 p->testOption = s.substr(optionStart + 2); in parseArgString()
187 p->name = s.substr(nameStart + 1); in parseArgString()
DUtilities.cpp104 out += in.substr(start); in stripHtml()
107 out += in.substr(start, lt - start); in stripHtml()
173 addCommaSeparated(userAttribute.substr(1), &stream, &needComma); in makeAttributeTag()
DSpecification.cpp130 const string trimmed = type.substr(0, last); in getVectorSizeAndBaseType()
190 minValue = testOption.substr(6, pComma - 6); in parseParameterDefinition()
191 maxValue = testOption.substr(pComma + 1, pParen - pComma - 1); in parseParameterDefinition()
198 smallerParameter = testOption.substr(6, pParen - 6); in parseParameterDefinition()
205 compatibleTypeIndex = findCType(testOption.substr(11, pParen - 11)); in parseParameterDefinition()
285 mDeprecatedMessage = value.substr(pComma + 2); in scanDocumentationTags()
566 mPrecisionLimit = value.substr(8, pParen - 8); in parseTest()
/frameworks/native/services/vr/performanced/
Dtask.cpp105 return android::base::Trim(line.substr(offset + field.size() + 1)); in GetStatusField()
125 std::string key = line.substr(0, offset); in ReadStatusFields()
126 std::string value = android::base::Trim(line.substr(offset + 1)); in ReadStatusFields()
/frameworks/compile/mclinker/lib/LD/
DRelocator.cpp59 sect_name = sect_name.substr(sect_name.find('.', /*pos=*/1)); in issueUndefRef()
68 if (sect_name.substr(0, 5) != ".text") { in issueUndefRef()
DGNUArchiveReader.cpp172 member_name.assign(name_field.substr(0, pos).str()); in readMemberHeader()
179 name_field.substr(begin, end - begin).getAsInteger(10, name_offset); in readMemberHeader()
185 name_field.substr(begin, end - begin).getAsInteger(10, pNestedOffset); in readMemberHeader()
193 pArchiveRoot.getStrTable().substr(begin, end - begin - 1)); in readMemberHeader()
/frameworks/base/tools/aapt2/xml/
DXmlUtil.cpp42 package = package.substr(schema_prefix.size(), package.size() - schema_prefix.size()); in ExtractPackageFromNamespace()
51 package = package.substr(schema_prefix.size(), package.size() - schema_prefix.size()); in ExtractPackageFromNamespace()
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
DBackgroundDexOptServiceIntegrationTests.java170 final String substr = "[status="; in getCompilerFilter() local
172 int startIndex = line.indexOf(substr); in getCompilerFilter()
176 startIndex += substr.length(); in getCompilerFilter()
/frameworks/base/libs/androidfw/include/androidfw/
DStringPiece.h62 BasicStringPiece<TChar> substr(size_t start, size_t len = npos) const;
63 BasicStringPiece<TChar> substr(BasicStringPiece<TChar>::const_iterator begin,
136 inline BasicStringPiece<TChar> BasicStringPiece<TChar>::substr(size_t start, size_t len) const { in substr() function
148 inline BasicStringPiece<TChar> BasicStringPiece<TChar>::substr( in substr() function
/frameworks/compile/libbcc/tools/bcc/
DMain.cpp174 std::string name = plan.substr(0, found); in extractSourcesAndSlots()
178 std::istringstream iss(plan.substr(found + 1)); in extractSourcesAndSlots()
183 std::string sourceStr = s.substr(0, found); in extractSourcesAndSlots()
184 std::string slotStr = s.substr(found + 1); in extractSourcesAndSlots()
/frameworks/base/cmds/statsd/src/storage/
DStorageManager.cpp83 char* substr = strtok(name, "_"); in parseFileName() local
84 while (substr != nullptr && index < 3) { in parseFileName()
85 result[index] = StrToInt64(substr); in parseFileName()
87 substr = strtok(nullptr, "_"); in parseFileName()
100 output->mIsHistory = (substr != nullptr && strcmp("history", substr) == 0); in parseFileName()
/frameworks/base/startop/view_compiler/
Dutil.cc34 return filename.substr(start, end - start); in FindLayoutNameFromFilename()
/frameworks/base/tools/dump-coverage/
Ddump_coverage.cc156 command = options.substr(0, loc_delim); in SplitOnColon()
157 args = options.substr(loc_delim + 1, options.length()); in SplitOnColon()
/frameworks/base/tools/aapt2/filter/
DAbiFilter.cpp47 const std::string& path_abi = path.substr(kLibPrefixLen, abi_end - kLibPrefixLen); in Keep()
/frameworks/base/cmds/incident_helper/src/parsers/
DSystemPropertiesParser.cpp190 line = line.substr(1, line.size() - 2); // trim [] in Parse()
196 name = line.substr(0, index); in Parse()
197 value = trim(line.substr(index + 4), DEFAULT_WHITESPACE); in Parse()

1234