Home
last modified time | relevance | path

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

12

/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 …]
DBase64Codec.java334 String sep = StringUtils.newStringUtf8(lineSeparator); in Base64Codec()
653 return StringUtils.newStringUtf8(encodeBase64(binaryData, true)); in encodeBase64String()
679 return StringUtils.newStringUtf8(encodeBase64(binaryData, false, true)); in encodeBase64URLSafeString()
722 return decode(StringUtils.getBytesUtf8(pArray)); in decode()
917 return StringUtils.newStringUtf8(encode(pArray)); in encodeToString()
/external/libbrillo/brillo/strings/
Dstring_utils_test.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()
DFileFilter.java21 import org.codehaus.plexus.util.StringUtils;
96 pattern = StringUtils.join(patterns.iterator(), ","); in buildPattern()
DAbstractAgentMojo.java21 import org.codehaus.plexus.util.StringUtils;
189 .setIncludes(StringUtils.join(includes.iterator(), ":")); in createAgentOptions()
193 .setExcludes(StringUtils.join(excludes.iterator(), ":")); in createAgentOptions()
/external/opencensus-java/api/src/main/java/io/opencensus/internal/
DStringUtils.java20 public final class StringUtils { class
41 private StringUtils() {} in StringUtils() method in StringUtils
/external/opencensus-java/api/src/main/java/io/opencensus/stats/
DMeasure.java22 import io.opencensus.internal.StringUtils;
110 StringUtils.isPrintableString(name) && name.length() <= NAME_MAX_LENGTH, in create()
155 StringUtils.isPrintableString(name) && name.length() <= NAME_MAX_LENGTH, in create()
DView.java23 import io.opencensus.internal.StringUtils;
192 StringUtils.isPrintableString(name) && name.length() <= NAME_MAX_LENGTH, in create()
/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/opencensus-java/api/src/test/java/io/opencensus/internal/
DStringUtilsTest.java32 assertTrue(StringUtils.isPrintableString("abcd")); in isPrintableString()
33 assertFalse(StringUtils.isPrintableString("\2ab\3cd")); in isPrintableString()
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
DReferenceFormatter.java38 import org.jf.util.StringUtils;
45 StringUtils.writeEscapedString(writer, item); in writeStringReference()
53 StringUtils.writeEscapedString(writer, callSite.getMethodName()); in writeCallSiteReference()
/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()
DHeaderItem.java38 import org.jf.util.StringUtils;
173 out.annotate(8, "magic: %s", StringUtils.escapeString(magicBuilder.toString())); in makeAnnotator()
/external/opencensus-java/api/src/main/java/io/opencensus/tags/
DTagValue.java20 import io.opencensus.internal.StringUtils;
77 return value.length() <= MAX_LENGTH && StringUtils.isPrintableString(value); in isValid()
DTagKey.java20 import io.opencensus.internal.StringUtils;
82 return !name.isEmpty() && name.length() <= MAX_LENGTH && StringUtils.isPrintableString(name); in isValid()
/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/dexlib2/src/main/java/org/jf/dexlib2/util/
DReferenceUtil.java37 import org.jf.util.StringUtils;
184 StringUtils.writeEscapedString(writer, callSiteReference.getMethodName()); in writeCallSite()
209 …return String.format("\"%s\"", StringUtils.escapeString(((StringReference)reference).getString())); in getReferenceString()
DEncodedValueUtils.java37 import org.jf.util.StringUtils;
102StringUtils.writeEscapedString(writer, ((StringEncodedValue)encodedValue).getValue()); in writeEncodedValue()
/external/smali/smalidea/src/main/java/org/jf/smalidea/dexlib/instruction/
DSmalideaInstruction.java47 import org.jf.smalidea.util.StringUtils;
180 return new ImmutableStringReference(StringUtils.parseQuotedString( in getReference()
/external/smali/smalidea/src/main/java/org/jf/smalidea/util/
DStringUtils.java41 public class StringUtils { class
/external/apache-commons-bcel/src/test/java/org/apache/bcel/generic/
DJDKGenericDumpTestCase.java38 import org.apache.commons.lang3.StringUtils;
109 if (StringUtils.isNoneBlank(javaHome)) { in findJavaHomesOnWindows()

12