Searched refs:quote (Results 1 - 11 of 11) sorted by relevance

/libcore/json/src/main/java/org/json/
H A DJSONTokener.java185 * Returns the string up to but not including {@code quote}, unescaping any
186 * character escape sequences encountered along the way. The opening quote
187 * should have already been read. This consumes the closing quote, but does
190 * @param quote either ' or ".
192 public String nextString(char quote) throws JSONException { argument
205 if (c == quote) {
H A DJSONObject.java762 public static String quote(String data) { method in class:JSONObject
/libcore/ojluni/src/main/java/sun/net/www/
H A DParseUtil.java302 // Most of the code are just copy and paste, except that quote()
356 * because we must not quote a literal IPv6 address
370 sb.append(quote(doquote, L_URIC, H_URIC));
373 sb.append(quote(opaquePart, L_URIC, H_URIC));
378 sb.append(quote(path, L_PATH, H_PATH));
381 sb.append(quote(query, L_URIC, H_URIC));
395 sb.append(quote(userInfo, L_USERINFO, H_USERINFO));
422 sb.append(quote(doquote,
427 sb.append(quote(authority,
437 sb.append(quote(fragmen
444 private static String quote(String s, long lowMask, long highMask) { method in class:ParseUtil
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DStreamTokenizer.java42 * <i>numeric</i>, <i>string quote</i>, and <i>comment character</i>.
105 * For a quoted string token, its value is the quote character.
165 * a quote character.
211 * <li>Single quote {@code '\u005C''} and double quote {@code '"'}
212 * are string quote characters.
369 * If a string quote character is encountered, then a string is
371 * the string quote character, up to (but not including) the next
372 * occurrence of that same string quote character, or a line
696 /* If we broke out of the loop because we found a matching quote
[all...]
/libcore/ojluni/src/main/java/java/util/regex/
H A DPattern.java366 * constructs, as defined in the table above, as well as to quote characters
1278 public static String quote(String s) { method in class:Pattern
1334 icuPattern = quote(pattern);
/libcore/xml/src/main/java/org/kxml2/io/
H A DKXmlParser.java664 int quote = peekCharacter();
666 if (quote == '"') {
668 } else if (quote == '\'') {
917 int quote = peekCharacter();
919 if (quote == '"' || quote == '\'') {
921 entityValue = readValue((char) quote, true, false, ValueContext.ENTITY_DECLARATION);
922 if (peekCharacter() == quote) {
1127 position++; // end quote
/libcore/ojluni/src/main/java/java/net/
H A DURI.java298 * <li><p> To <i>quote</i> characters that are otherwise illegal in a
316 * <li><p><a name="quote"></a> An illegal character is <i>quoted</i> simply by
346 * multi-argument constructors} quote illegal characters as
613 * categories is <a href="#quote">quoted</a>. </p></li>
697 * ({@code '@'}), is <a href="#quote">quoted</a>. </p></li>
789 * is <a href="#quote">quoted</a>. </p></li>
1832 sb.append(quote(userInfo, L_USERINFO, H_USERINFO));
1862 sb.append(quote(doquote,
1866 sb.append(quote(authority,
1884 * because we must not quote
2701 private static String quote(String s, long lowMask, long highMask) { method in class:URI
[all...]
/libcore/json/src/test/java/org/json/
H A DJSONStringerTest.java227 assertEquals("\"" + escaped + "\"", JSONObject.quote(original));
H A DJSONObjectTest.java941 assertEquals("\"\"", JSONObject.quote(null));
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
H A DPatternTest.java1386 assertEquals("quote was wrong for plain text", "\\Qtest\\E", p
1387 .quote("test"));
1388 assertEquals("quote was wrong for text with quote sign",
1389 "\\Q\\Qtest\\E", p.quote("\\Qtest"));
1390 assertEquals("quote was wrong for quotted text",
1391 "\\Q\\Qtest\\E\\\\E\\Q\\E", p.quote("\\Qtest\\E"));
/libcore/luni/src/test/java/tests/java/sql/
H A DDatabaseMetaDataTest.java1383 String quote = meta.getIdentifierQuoteString();
1389 String selectQuery = "SELECT " + quote + "fieLD1" + quote + " FROM "

Completed in 1882 milliseconds