Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

FixedStringMethods.Append

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static FormatError Append(ref T fs, Rune rune);

Parameters

Parameter Description
fs A FixedString"N"Bytes.
rune A Unicode.Rune to append.

Returns

FormatError FormatError.None if successful. Returns FormatError.Overflow if the capacity of the string is exceeded.

Description

Appends a Unicode.Rune to this string.


Declaration

public static FormatError Append(ref T fs, char ch);

Parameters

Parameter Description
fs A FixedString"N"Bytes.
ch A char to append.

Returns

FormatError FormatError.None if successful. Returns FormatError.Overflow if the capacity of the string is exceeded.

Description

Appends a char to this string.


Declaration

public static FormatError Append(ref T fs, Rune rune, int count);

Parameters

Parameter Description
fs A FixedString"N"Bytes.
rune A Unicode.Rune to append some number of times.
count The number of times to append the rune.

Returns

FormatError FormatError.None if successful. Returns FormatError.Overflow if the capacity of the string is exceeded.

Description

Appends a Unicode.Rune a number of times to this string.


Declaration

public static FormatError Append(ref T fs, long input);

Parameters

Parameter Description
fs A FixedString"N"Bytes.
input A long integer to append to the string.

Returns

FormatError FormatError.None if successful. Returns FormatError.Overflow if the capacity of the string is exceeded.

Description

Appends a number (converted to UTF-8 characters) to this string.


Declaration

public static FormatError Append(ref T fs, int input);

Parameters

Parameter Description
fs A FixedString"N"Bytes.
input An int to append to the string.

Returns

FormatError FormatError.None if successful. Returns FormatError.Overflow if the capacity of the string is exceeded.

Description

Appends a number (converted to UTF-8 characters) to this string.


Declaration

public static FormatError Append(ref T fs, ulong input);

Parameters

Parameter Description
fs A FixedString"N"Bytes.
input A ulong integer to append to the string.

Returns

FormatError FormatError.None if successful. Returns FormatError.Overflow if the capacity of the string is exceeded.

Description

Appends a number (converted to UTF-8 characters) to this string.


Declaration

public static FormatError Append(ref T fs, uint input);

Parameters

Parameter Description
fs A FixedString"N"Bytes.
input A uint to append to the string.

Returns

FormatError FormatError.None if successful. Returns FormatError.Overflow if the capacity of the string is exceeded.

Description

Appends a number (converted to UTF-8 characters) to this string.


Declaration

public static FormatError Append(ref T fs, float input, char decimalSeparator);

Parameters

Parameter Description
fs A FixedString"N"Bytes.
input A float to append to the string.
decimalSeparator The character to use as the decimal separator. Defaults to a period ('.').

Returns

FormatError FormatError.None if successful. Returns FormatError.Overflow if the capacity of the string is exceeded.

Description

Appends a number (converted to UTF-8 characters) to this string.


Declaration

public static FormatError Append(ref T fs, ref T2 input);

Parameters

Parameter Description
fs The destination string.
input The source string.

Returns

FormatError FormatError.None if successful. Returns FormatError.Overflow if the capacity of the destination string is exceeded.

Description

Appends another string to this string.

When the method returns an error, the destination string is not modified.


Declaration

public static FormatError Append(ref T fs, byte* utf8Bytes, int utf8BytesLength);

Parameters

Parameter Description
fs The destination string.
utf8Bytes The bytes to append.
utf8BytesLength The number of bytes to append.

Returns

FormatError FormatError.None if successful. Returns FormatError.Overflow if the capacity of the destination string is exceeded.

Description

Appends bytes to this string.

When the method returns an error, the destination string is not modified.

No validation is performed: it is your responsibility for the destination to contain valid UTF-8 when you're done appending bytes.


Declaration

public static FormatError Append(ref T fs, string s);

Parameters

Parameter Description
fs The destination string.
s The string to append.

Returns

FormatError FormatError.None if successful. Returns FormatError.Overflow if the capacity of the destination string is exceeded.

Description

Appends another string to this string.

When the method returns an error, the destination string is not modified.