Home
last modified time | relevance | path

Searched refs:asString (Results 1 – 25 of 63) sorted by relevance

123

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/util/
DJoin.java10 String asString = obj == null ? null : obj.toString(); in join() local
11 if (obj != null && asString.length() > 0) { in join()
23 String asString = obj == null ? null : obj.toString(); in join() local
24 if (asString != null && asString.length() > 0) { in join()
25 sb.append(del).append(asString); in join()
/external/xmlrpcpp/src/
DXmlRpcValue.cpp57 case TypeString: delete _value.asString; break; in invalidate()
76 case TypeString: _value.asString = new std::string(); break; in assertTypeOrInvalid()
131 case TypeString: _value.asString = new std::string(*rhs._value.asString); break; in operator =()
160 case TypeString: return *_value.asString == *other._value.asString; in operator ==()
197 case TypeString: return int(_value.asString->size()); in size()
383 …_value.asString = new std::string(XmlRpcUtil::xmlDecode(valueXml.substr(*offset, valueEnd-*offset)… in stringFromXml()
384 *offset += int(_value.asString->length()); in stringFromXml()
392 xml += XmlRpcUtil::xmlEncode(*_value.asString); in stringToXml()
443 std::string asString = valueXml.substr(*offset, valueEnd-*offset); in binaryFromXml() local
451 decoder.get(asString.begin(), asString.end(), ins, iostatus); in binaryFromXml()
[all …]
DXmlRpcValue.h52 { _value.asString = new std::string(value); } in XmlRpcValue()
55 { _value.asString = new std::string(value); } in XmlRpcValue()
91 operator std::string&() { assertTypeOrInvalid(TypeString); return *_value.asString; }
181 std::string* asString; member
/external/parameter-framework/upstream/utility/test/
Dutility.cpp89 REQUIRE(asString(test.input, test.separator) == test.result);
92 REQUIRE(asString(test.input) == test.resultNoSep);
123 REQUIRE(asString(test.input, test.keyValueSep, test.itemSep) == test.result);
124 REQUIRE(asString(test.input, test.keyValueSep) == test.resultNoKeyValueSep);
125 REQUIRE(asString(test.input) == test.resultNoSep);
/external/parameter-framework/upstream/utility/
DUtility.cpp43 std::string asString(const std::list<std::string> &lstr, const std::string &strSeparator) in asString() function
51 std::string asString(const std::map<std::string, std::string> &mapStr, in asString() function
60 return asString(listKeysValues, strItemSeparator); in asString()
DUtility.h73 std::string asString(const std::list<std::string> &lstr, const std::string &separator = "\n");
85 std::string asString(const std::map<std::string, std::string> &mapStr,
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/
DMethodIdItem.java70 public static String asString(@Nonnull DexBackedDexFile dexFile, int methodIndex) {
76 String protoString = ProtoIdItem.asString(dexFile, protoIndex);
87 String methodString = asString(dexFile, methodIndex);
104 ret[i] = asString(dexFile, i);
DProtoIdItem.java72 String protoString = asString(dexFile, protoIndex);
81 public static String asString(@Nonnull DexBackedDexFile dexFile, int protoIndex) {
88 sb.append(TypeListItem.asString(dexFile, parametersOffset));
107 ret[i] = asString(dexFile, i);
DFieldIdItem.java70 public static String asString(@Nonnull DexBackedDexFile dexFile, int fieldIndex) {
87 String fieldString = asString(dexFile, fieldIndex);
104 ret[i] = asString(dexFile, i);
DTypeListItem.java76 String typeList = asString(dexFile, typeListOffset);
85 public static String asString(@Nonnull DexBackedDexFile dexFile, int typeListOffset) {
DClassDefItem.java121 public static String asString(@Nonnull DexBackedDexFile dexFile, int classIndex) { in asString() method
136 ret[i] = asString(dexFile, i); in getClasses()
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DBaseCompiledTemplate.java152 public static String asString(String value) { in asString() method in BaseCompiledTemplate
156 public static String asString(int value) { in asString() method in BaseCompiledTemplate
160 public static String asString(boolean value) { in asString() method in BaseCompiledTemplate
164 public static String asString(Value value) { in asString() method in BaseCompiledTemplate
165 return value.asString(); in asString()
168 public static String asString(Data data) { in asString() method in BaseCompiledTemplate
169 return TypeConverter.asString(data); in asString()
/external/jsoncpp/src/test_lib_json/
Dmain.cpp267 JSONTEST_ASSERT_STRING_EQUAL("", null_.asString()); in JSONTEST_FIXTURE()
295 JSONTEST_ASSERT_STRING_EQUAL("a", string1_.asString()); in JSONTEST_FIXTURE()
390 JSONTEST_ASSERT_STRING_EQUAL("0", val.asString()); in JSONTEST_FIXTURE()
418 JSONTEST_ASSERT_STRING_EQUAL("0", val.asString()); in JSONTEST_FIXTURE()
446 JSONTEST_ASSERT_STRING_EQUAL("0", val.asString()); in JSONTEST_FIXTURE()
474 JSONTEST_ASSERT_STRING_EQUAL("0", val.asString()); in JSONTEST_FIXTURE()
502 JSONTEST_ASSERT_STRING_EQUAL("0", val.asString()); in JSONTEST_FIXTURE()
530 JSONTEST_ASSERT_STRING_EQUAL("0", val.asString()); in JSONTEST_FIXTURE()
557 JSONTEST_ASSERT_STRING_EQUAL("1048576", val.asString()); in JSONTEST_FIXTURE()
585 JSONTEST_ASSERT_STRING_EQUAL("1048576", val.asString()); in JSONTEST_FIXTURE()
[all …]
/external/v8/test/mjsunit/regress/
Dregress-2470.js46 var asString = Function("return 23").toString();
47 assertSame("function anonymous() {\nreturn 23\n}", asString);
/external/jsilver/src/com/google/clearsilver/jsilver/interpreter/
DTemplateInterpreter.java123 context.writeUnescaped(value.asString()); in caseAUvarCommand()
150 templateLoader.createTemp(stackTraceDescription, value.asString(), context in evaluateVariable()
211 variable.setValue(value.asString()); in caseASetCommand()
260 String escapeStrategy = value.asString(); in caseAEscapeCommand()
277 String escapeStrategy = value.asString(); in caseAAutoescapeCommand()
405 context.writeUnescaped(value.asString()); in writeVariable()
407 context.writeEscaped(value.asString()); in writeVariable()
413 context.writeUnescaped(value.asString()); in autoEscapeAndWriteVariable()
415 context.writeEscaped(value.asString()); in autoEscapeAndWriteVariable()
568 String templateName = path.asString(); in include()
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/values/
DValue.java96 public abstract String asString(); in asString() method in Value
233 && (asString().equals(otherValue.asString()) || (isEmpty() && otherValue.isEmpty())); in equals()
243 return asString(); in toString()
DVariantValue.java44 public String asString() { in asString() method in VariantValue
57 return asString().isEmpty(); in isEmpty()
/external/jsilver/src/com/google/clearsilver/jsilver/functions/string/
DFindFunction.java36 return literalConstant(fullStringValue.asString().indexOf(subStringValue.asString()), in execute()
/external/jsilver/src/com/google/clearsilver/jsilver/functions/operators/
DAddFunction.java33 return literalValue(left.asString() + right.asString(), mode, left.isPartiallyEscaped() in execute()
/external/parameter-framework/upstream/parameter/
DMappingData.cpp87 std::string CMappingData::asString() const in asString() function in CMappingData
89 return utility::asString(_keyToValueMap, ", ", ":"); in asString()
DTypeElement.cpp167 return utility::asString(mappings, ", "); in getFormattedMapping()
174 return _pMappingData->asString(); in getFormattedMapping()
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
DJreDeflateParametersTest.java71 String asString = params.toString(); in testParseString() local
72 JreDeflateParameters fromString = JreDeflateParameters.parseString(asString); in testParseString()
/external/libphonenumber/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java72 phoneNumber = Streams.asString(in, "UTF-8"); in doPost()
74 defaultCountry = Streams.asString(in).toUpperCase(); in doPost()
76 String languageEntered = Streams.asString(in).toLowerCase(); in doPost()
81 regionCode = Streams.asString(in).toUpperCase(); in doPost()
/external/libgdx/gdx/src/com/badlogic/gdx/utils/
DJsonValue.java170 public String asString () { in asString() method in JsonValue
594 return (child == null || !child.isValue() || child.isNull()) ? defaultValue : child.asString(); in getString()
650 return child.asString(); in getString()
722 return child.asString(); in getString()
914 if (isValue()) return asString(); in toJson()
955 buffer.append(outputType.quoteValue(object.asString())); in json()
971 if (isValue()) return name == null ? asString() : name + ": " + asString(); in toString()
1045 buffer.append(outputType.quoteValue(object.asString())); in prettyPrint()
/external/clang/unittests/ASTMatchers/
DASTMatchersTest.cpp834 qualType(asString("int ***"), forEachDescendant(pointerType().bind("x"))), in TEST()
860 valueDecl(hasType(asString("enum EnumType"))))); in TEST()
862 valueDecl(hasType(asString("void (void)"))))); in TEST()
1096 varDecl(hasName("x"), hasTypeLoc(loc(asString("int")))))); in TEST()
1100 declaratorDecl(hasTypeLoc(loc(asString("int")))))); in TEST()
1209 cxxMemberCallExpr(on(hasType(asString("class Y *")))))); in TEST()
1212 cxxMethodDecl(hasParameter(0, hasType(asString("int")))))); in TEST()
1214 fieldDecl(hasType(asString("ns::A"))))); in TEST()
1216 fieldDecl(hasType(asString("struct (anonymous namespace)::A"))))); in TEST()
1421 hasArgumentOfType(asString("int"))))); in TEST()
[all …]

123