Home
last modified time | relevance | path

Searched refs:StringUtils (Results 1 – 25 of 58) sorted by relevance

123

/external/sl4a/Common/src/org/apache/commons/codec/binary/
DStringUtils.java33 public class StringUtils { class
48 return StringUtils.getBytesUnchecked(string, CharEncoding.ISO_8859_1); in getBytesIso8859_1()
64 return StringUtils.getBytesUnchecked(string, CharEncoding.US_ASCII); in getBytesUsAscii()
80 return StringUtils.getBytesUnchecked(string, CharEncoding.UTF_16); in getBytesUtf16()
96 return StringUtils.getBytesUnchecked(string, CharEncoding.UTF_16BE); in getBytesUtf16Be()
112 return StringUtils.getBytesUnchecked(string, CharEncoding.UTF_16LE); in getBytesUtf16Le()
128 return StringUtils.getBytesUnchecked(string, CharEncoding.UTF_8); in getBytesUtf8()
157 throw StringUtils.newIllegalStateException(charsetName, e); in getBytesUnchecked()
190 throw StringUtils.newIllegalStateException(charsetName, e); in newString()
205 return StringUtils.newString(bytes, CharEncoding.ISO_8859_1); in newStringIso8859_1()
[all …]
/external/libbrillo/brillo/strings/
Dstring_utils_unittest.cc16 TEST(StringUtils, Split) { in TEST() argument
74 TEST(StringUtils, SplitAtFirst) { in TEST() argument
122 TEST(StringUtils, Join_String) { in TEST() argument
134 TEST(StringUtils, Join_Pair) { in TEST() argument
139 TEST(StringUtils, GetBytesAsString) { in TEST() argument
151 TEST(StringUtils, GetStringAsBytes) { in TEST() argument
/external/jacoco/jacoco-maven-plugin/src/org/jacoco/maven/
DRuleConfiguration.java18 import org.codehaus.plexus.util.StringUtils;
52 rule.setIncludes(StringUtils.join(includes.iterator(), ":")); in setIncludes()
61 rule.setExcludes(StringUtils.join(excludes.iterator(), ":")); in setExcludes()
/external/r8/src/main/java/com/android/tools/r8/code/
DConstWideHigh16.java10 import com.android.tools.r8.utils.StringUtils;
43 return formatString("v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 16) + in toString()
48 return formatSmaliString("v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 16) + in toSmaliString()
DConstWide32.java10 import com.android.tools.r8.utils.StringUtils;
44 return formatString("v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 16) + in toString()
50 "v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 16) + " # " + decodedValue()); in toSmaliString()
DConst4.java10 import com.android.tools.r8.utils.StringUtils;
44 return formatString("v" + A + ", 0x" + StringUtils.hexString(decodedValue(), 1) + in toString()
49 return formatSmaliString("v" + A + ", 0x" + StringUtils.hexString(decodedValue(), 2) + in toSmaliString()
DConst.java10 import com.android.tools.r8.utils.StringUtils;
44 return formatString("v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 8) + in toString()
49 return formatSmaliString("v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 8) + in toSmaliString()
DConstWide16.java10 import com.android.tools.r8.utils.StringUtils;
44 return formatString("v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 16) + in toString()
50 "v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 16) + "L # " + decodedValue()); in toSmaliString()
DConstWide.java10 import com.android.tools.r8.utils.StringUtils;
44 return formatString("v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 16) + in toString()
49 return formatSmaliString("v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 16) + in toSmaliString()
DConstHigh16.java10 import com.android.tools.r8.utils.StringUtils;
44 return formatString("v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 8) + in toString()
49 return formatSmaliString("v" + AA + ", 0x" + StringUtils.hexString(decodedValue(), 8) + in toSmaliString()
DFillArrayDataPayload.java9 import com.android.tools.r8.utils.StringUtils;
85 builder.append(StringUtils.hexString(element_width, 1)); in toSmaliString()
97 builder.append(StringUtils.hexString(value, 2)); in toSmaliString()
113 builder.append(StringUtils.hexString(value, element_width * 2)); in toSmaliString()
DInstruction.java17 import com.android.tools.r8.utils.StringUtils;
148 StringUtils.appendLeftPadded(builder, Integer.toString(getOffset()), 6); in formatString()
150 StringUtils.appendRightPadded(builder, getName(), 20); in formatString()
159 StringUtils.appendRightPadded(builder, getSmaliName(), 20); in formatSmaliString()
DPackedSwitchPayload.java8 import com.android.tools.r8.utils.StringUtils;
88 StringUtils.appendLeftPadded(builder, (first_key + i) + " -> " + targets[i] + "\n", 20); in toString()
98 builder.append(StringUtils.hexString(first_key, 8)); in toSmaliString()
DSparseSwitchPayload.java8 import com.android.tools.r8.utils.StringUtils;
94 StringUtils.appendLeftPadded(builder, keys[i] + " -> " + targets[i] + "\n", 20); in toString()
107 builder.append(StringUtils.hexString(keys[i], 8)); in toSmaliString()
/external/r8/src/main/java/com/android/tools/r8/ir/code/
DDebugLocalsChange.java10 import com.android.tools.r8.utils.StringUtils;
79 StringUtils.append(builder, ending.int2ReferenceEntrySet()); in toString()
81 StringUtils.append(builder, starting.int2ReferenceEntrySet()); in toString()
/external/r8/src/test/java/com/android/tools/r8/compatdx/
DCompatDxTests.java17 import com.android.tools.r8.utils.StringUtils;
18 import com.android.tools.r8.utils.StringUtils.BraceType;
164 System.out.println("running: d8 " + StringUtils.join(d8Args, " ")); in runDexerWithOutput()
172 System.out.println("running: dx " + StringUtils.join(dxArgs, " ")); in runDexerWithOutput()
185 StringUtils.join(dxFiles, "\n", BraceType.NONE, (file) -> in runDexerWithOutput()
187 StringUtils.join(d8Files, "\n", BraceType.NONE, (file) -> in runDexerWithOutput()
/external/r8/src/main/java/com/android/tools/r8/shaking/
DProguardClassSpecification.java7 import com.android.tools.r8.utils.StringUtils;
256 StringUtils.appendNonEmpty(builder, " @", classAnnotation, null); in toString()
257 StringUtils.appendNonEmpty(builder, " ", classAccessFlags, null); in toString()
258 StringUtils.appendNonEmpty(builder, " !", negatedClassAccessFlags.toString().replace(" ", " !"), in toString()
275 StringUtils.appendNonEmpty(builder, " @", inheritanceAnnotation, null); in toString()
DProguardConfigurationRule.java7 import com.android.tools.r8.utils.StringUtils;
41 StringUtils.appendNonEmpty(builder, ",", modifierString(), null); in toString()
/external/smali/baksmali/src/main/java/org/jf/baksmali/Renderers/
DCharRenderer.java32 import org.jf.util.StringUtils;
39 StringUtils.writeEscapedChar(writer, val); in writeTo()
/external/smali/smalidea/src/test/java/org/jf/smalidea/util/
DStringUtilsTest.java40 String parsedString = StringUtils.parseQuotedString("\"abcd\""); in testStringUtilsBasic()
46 String parsedString = StringUtils.parseQuotedString("\"a\\\\b\\nc\\uabcdd\""); in testStringUtilsQuotedChars()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/
DStringIdItem.java37 import org.jf.util.StringUtils;
58 StringUtils.escapeString(stringValue)); in makeAnnotator()
81 string = String.format("\"%s\"", StringUtils.escapeString(string));
DStringDataItem.java37 import org.jf.util.StringUtils;
57 … out.annotateTo(reader.getOffset() + 1, "data = \"%s\"", StringUtils.escapeString(value)); in makeAnnotator()
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/Debug/
DSetSourceFileMethodItem.java36 import org.jf.util.StringUtils;
56 StringUtils.writeEscapedString(writer, sourceFile); in writeTo()
/external/smali/smalidea/src/main/java/org/jf/smalidea/dexlib/
DSmalideaMethodParameter.java40 import org.jf.smalidea.util.StringUtils;
58 return StringUtils.parseQuotedString(psiParameter.getName()); in getName()
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
DReferenceFormatter.java35 import org.jf.util.StringUtils;
42 StringUtils.writeEscapedString(writer, item); in writeStringReference()

123