Class Utf8String
Representation of a string encoded with the UTF-8 encoding.
UTF-8 strings can represent the full Unicode span of characters. Their main disadvantage is that the variable-length encoding of non-ASCII characters makes looping over characters be a much more complex process than with AsciiString or the future Utf16String.
Namespace: Perlang.Lang
Assembly: Perlang.Stdlib.dll
Syntax
public class Utf8String : String
Properties
| Improve this Doc View SourceLength
Declaration
public override nuint Length { get; }
Property Value
Type | Description |
---|---|
System.UIntPtr |
Overrides
Methods
| Improve this Doc View Sourcefrom(String)
Initializes a new instance of the Utf8String class from an existing
Declaration
public static Utf8String from(string s)
Parameters
Type | Name | Description |
---|---|---|
System.String | s | A .NET string. |
Returns
Type | Description |
---|---|
Utf8String | A newly allocated Utf8String. |
to_upper()
Declaration
public override String to_upper()
Returns
Type | Description |
---|---|
String |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |