Udostępnij za pośrednictwem


JSONTokener.NextString(Char) Method

Definition

Returns the string up to but not including quote, unescaping any character escape sequences encountered along the way.

[Android.Runtime.Register("nextString", "(C)Ljava/lang/String;", "GetNextString_CHandler")]
public virtual string? NextString (char quote);
[<Android.Runtime.Register("nextString", "(C)Ljava/lang/String;", "GetNextString_CHandler")>]
abstract member NextString : char -> string
override this.NextString : char -> string

Parameters

quote
Char

either ' or ".

Returns

Attributes

Exceptions

Remarks

Returns the string up to but not including quote, unescaping any character escape sequences encountered along the way. The opening quote should have already been read. This consumes the closing quote, but does not include it in the returned string.

Java documentation for org.json.JSONTokener.nextString(char).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to