Condividi tramite


StringCharacterIterator Constructors

Definition

Overloads

StringCharacterIterator(String)

Constructs an iterator with an initial index of 0.

StringCharacterIterator(String, Int32)

Constructs an iterator with the specified initial index.

StringCharacterIterator(String, Int32, Int32, Int32)

Constructs an iterator over the given range of the given string, with the index set at the specified position.

StringCharacterIterator(String)

Constructs an iterator with an initial index of 0.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public StringCharacterIterator (string? text);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Text.StringCharacterIterator : string -> Java.Text.StringCharacterIterator

Parameters

text
String

the String to be iterated over

Attributes

Remarks

Java documentation for java.text.StringCharacterIterator.StringCharacterIterator(java.lang.String).

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

StringCharacterIterator(String, Int32)

Constructs an iterator with the specified initial index.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")]
public StringCharacterIterator (string? text, int pos);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]
new Java.Text.StringCharacterIterator : string * int -> Java.Text.StringCharacterIterator

Parameters

text
String

The String to be iterated over

pos
Int32

Initial iterator position

Attributes

Exceptions

if location is negative or greater than the length of the source string.

Remarks

Java documentation for java.text.StringCharacterIterator.StringCharacterIterator(java.lang.String, int).

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

StringCharacterIterator(String, Int32, Int32, Int32)

Constructs an iterator over the given range of the given string, with the index set at the specified position.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;III)V", "")]
public StringCharacterIterator (string? text, int begin, int end, int pos);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;III)V", "")>]
new Java.Text.StringCharacterIterator : string * int * int * int -> Java.Text.StringCharacterIterator

Parameters

text
String

The String to be iterated over

begin
Int32

Index of the first character

end
Int32

Index of the character following the last character

pos
Int32

Initial iterator position

Attributes

Exceptions

if start , start > end, location , location > end or if end is greater than the length of value.

Remarks

Java documentation for java.text.StringCharacterIterator.StringCharacterIterator(java.lang.String, int, int, int).

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