Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: int Utf8Length(this string)

Declaration

public static int Utf8Length(
    this string input
)

Summary

Determines the length of the UTF-8 encoding of the specified string.

Parameters

this stringinput String to determined UTF-8 length of.

Returns

The length of the string in bytes when encoded as UTF-8.