Home
last modified time | relevance | path

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

/external/sl4a/Common/src/org/apache/commons/codec/binary/
DStringUtils.java34 public class StringUtils { class
49 return StringUtils.getBytesUnchecked(string, CharEncoding.ISO_8859_1); in getBytesIso8859_1()
65 return StringUtils.getBytesUnchecked(string, CharEncoding.US_ASCII); in getBytesUsAscii()
81 return StringUtils.getBytesUnchecked(string, CharEncoding.UTF_16); in getBytesUtf16()
97 return StringUtils.getBytesUnchecked(string, CharEncoding.UTF_16BE); in getBytesUtf16Be()
113 return StringUtils.getBytesUnchecked(string, CharEncoding.UTF_16LE); in getBytesUtf16Le()
129 return StringUtils.getBytesUnchecked(string, CharEncoding.UTF_8); in getBytesUtf8()
158 throw StringUtils.newIllegalStateException(charsetName, e); in getBytesUnchecked()
191 throw StringUtils.newIllegalStateException(charsetName, e); in newString()
206 return StringUtils.newString(bytes, CharEncoding.ISO_8859_1); in newStringIso8859_1()
[all …]
DBase64Codec.java335 String sep = StringUtils.newStringUtf8(lineSeparator); in Base64Codec()
654 return StringUtils.newStringUtf8(encodeBase64(binaryData, true)); in encodeBase64String()
680 return StringUtils.newStringUtf8(encodeBase64(binaryData, false, true)); in encodeBase64URLSafeString()
723 return decode(StringUtils.getBytesUtf8(pArray)); in decode()
918 return StringUtils.newStringUtf8(encode(pArray)); in encodeToString()
/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/libgdx/extensions/gdx-setup/src/com/badlogic/gdx/setup/
DBuildScriptHelper.java126 int delta = StringUtils.countMatches(input, '{') - StringUtils.countMatches(input, '}'); in write()
130 wr.write(StringUtils.repeat(" ", clamp(indent - 4)) + input + "\n"); in write()
132 wr.write(StringUtils.repeat(" ", clamp(indent)) + input + "\n"); in write()
134 wr.write(StringUtils.repeat(" ", indent) + input + "\n"); in write()
149 static class StringUtils { class in BuildScriptHelper
/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()
DAbstractAgentMojo.java19 import org.codehaus.plexus.util.StringUtils;
177 final String agentIncludes = StringUtils.join(getIncludes() in createAgentOptions()
182 final String agentExcludes = StringUtils.join(getExcludes() in createAgentOptions()
DFileFilter.java21 import org.codehaus.plexus.util.StringUtils;
84 pattern = StringUtils.join(patterns.iterator(), ","); in buildPattern()
/external/libweave/src/
Dstring_utils_unittest.cc16 TEST(StringUtils, Split) { in TEST() argument
78 TEST(StringUtils, SplitAtFirst) { in TEST() argument
126 TEST(StringUtils, Join_String) { in TEST() argument
138 TEST(StringUtils, Join_Pair) { in TEST() argument
/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()
DHeaderItem.java37 import org.jf.util.StringUtils;
179 out.annotate(8, "magic: %s", StringUtils.escapeString(magicBuilder.toString())); 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()
DClassDefinition.java42 import org.jf.util.StringUtils;
143 StringUtils.writeEscapedString(writer, sourceFile); in writeSourceFile()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/
DReferenceUtil.java35 import org.jf.util.StringUtils;
129 …return String.format("\"%s\"", StringUtils.escapeString(((StringReference)reference).getString())); in getReferenceString()
/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/smali/util/src/main/java/org/jf/util/
DStringUtils.java37 public class StringUtils { class
/external/antlr/antlr-3.4/gunit-maven-plugin/src/main/java/org/antlr/mojo/antlr3/
DGUnitExecuteMojo.java26 import org.codehaus.plexus.util.StringUtils;
295 String scriptBaseName = StringUtils.chompLast( FileUtils.basename( script.getName() ), "." ); in performExecution()