Share via


Matcher.AppendTail Method

Definition

Overloads

AppendTail(StringBuffer)

Implements a terminal append-and-replace step.

AppendTail(StringBuilder)

Implements a terminal append-and-replace step.

AppendTail(StringBuffer)

Implements a terminal append-and-replace step.

[Android.Runtime.Register("appendTail", "(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;", "")]
public Java.Lang.StringBuffer AppendTail (Java.Lang.StringBuffer sb);
[<Android.Runtime.Register("appendTail", "(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;", "")>]
member this.AppendTail : Java.Lang.StringBuffer -> Java.Lang.StringBuffer

Parameters

sb
StringBuffer

The target string buffer

Returns

The target string buffer

Attributes

Exceptions

if no successful match has been made.

Remarks

Implements a terminal append-and-replace step.

This method reads characters from the input sequence, starting at the append position, and appends them to the given string buffer. It is intended to be invoked after one or more invocations of the #appendReplacement(StringBuffer, String) appendReplacement method in order to copy the remainder of the input sequence.

Java documentation for java.util.regex.Matcher.appendTail(java.lang.StringBuffer).

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

AppendTail(StringBuilder)

Implements a terminal append-and-replace step.

[Android.Runtime.Register("appendTail", "(Ljava/lang/StringBuilder;)Ljava/lang/StringBuilder;", "", ApiSince=34)]
public Java.Lang.StringBuilder AppendTail (Java.Lang.StringBuilder sb);
[<Android.Runtime.Register("appendTail", "(Ljava/lang/StringBuilder;)Ljava/lang/StringBuilder;", "", ApiSince=34)>]
member this.AppendTail : Java.Lang.StringBuilder -> Java.Lang.StringBuilder

Parameters

sb
StringBuilder

The target string builder

Returns

The target string builder

Attributes

Remarks

Implements a terminal append-and-replace step.

This method reads characters from the input sequence, starting at the append position, and appends them to the given string builder. It is intended to be invoked after one or more invocations of the #appendReplacement(StringBuilder, String) appendReplacement method in order to copy the remainder of the input sequence.

Added in 9.

Java documentation for java.util.regex.Matcher.appendTail(java.lang.StringBuilder).

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