MCPcopy Create free account
hub / github.com/M66B/FairEmail / readDelimString

Method readDelimString

app/src/main/java/com/sun/mail/iap/Response.java:264–277  ·  view source on GitHub ↗

Extract a string stopping at control characters or any character in delim.

(String delim)

Source from the content-addressed store, hash-verified

262 * character in delim.
263 */
264 private String readDelimString(String delim) {
265 skipSpaces();
266
267 if (index >= size) // already at end of response
268 return null;
269
270 int b;
271 int start = index;
272 while (index < size && ((b = (((int)buffer[index])&0xff)) >= ' ') &&
273 delim.indexOf((char)b) < 0 && b != 0x7f)
274 index++;
275
276 return toString(buffer, start, index);
277 }
278
279 /**
280 * Read a string as an arbitrary sequence of characters,

Callers 2

readAtomMethod · 0.95
parseStringMethod · 0.95

Calls 3

skipSpacesMethod · 0.95
toStringMethod · 0.95
indexOfMethod · 0.80

Tested by

no test coverage detected