Attempts to create a Rune from a specified character and returns a value that indicates whether the operation succeeded.
TryCreate(UInt32, Rune)Attempts to create a Rune from the specified 32-bit unsigned integer that represents a Unicode scalar value.
TryCreate(Int32, Rune)Attempts to create a Rune from a specified signed integer that represents a Unicode scalar value.
TryCreate(Char, Char, Rune)Attempts to create a Rune from the specified UTF-16 surrogate pair and returns a value that indicates whether the operation was successful.
TryCreate(Char, Rune)Attempts to create a Rune from a specified character and returns a value that indicates whether the operation succeeded.
public:
static bool TryCreate(char ch, [Runtime::InteropServices::Out] System::Text::Rune % result);
public static bool TryCreate(char ch, out System.Text.Rune result);
static member TryCreate : char * Rune -> bool
Public Shared Function TryCreate (ch As Char, ByRef result As Rune) As Boolean
Parameters
The character from which to create the rune.
When this method returns, the rune that corresponds to ch
.
true
if the method succeeded; otherwise, false
.
Important
This API is not CLS-compliant.
Attempts to create a Rune from the specified 32-bit unsigned integer that represents a Unicode scalar value.
public:
static bool TryCreate(System::UInt32 value, [Runtime::InteropServices::Out] System::Text::Rune % result);
[System.CLSCompliant(false)]
public static bool TryCreate(uint value, out System.Text.Rune result);
[<System.CLSCompliant(false)>]
static member TryCreate : uint32 * Rune -> bool
Public Shared Function TryCreate (value As UInteger, ByRef result As Rune) As Boolean
Parameters
The Unicode scalar value.
When this method returns, the rune that corresponds to value
.
true
if the method succeeded; otherwise, false
.
Attempts to create a Rune from a specified signed integer that represents a Unicode scalar value.
public:
static bool TryCreate(int value, [Runtime::InteropServices::Out] System::Text::Rune % result);
public static bool TryCreate(int value, out System.Text.Rune result);
static member TryCreate : int * Rune -> bool
Public Shared Function TryCreate (value As Integer, ByRef result As Rune) As Boolean
Parameters
The Unicode scalar value.
When this method returns, the rune that corresponds to value
.
true
if the method succeeded; otherwise, false
.
Attempts to create a Rune from the specified UTF-16 surrogate pair and returns a value that indicates whether the operation was successful.
public:
static bool TryCreate(char highSurrogate, char lowSurrogate, [Runtime::InteropServices::Out] System::Text::Rune % result);
public static bool TryCreate(char highSurrogate, char lowSurrogate, out System.Text.Rune result);
static member TryCreate : char * char * Rune -> bool
Public Shared Function TryCreate (highSurrogate As Char, lowSurrogate As Char, ByRef result As Rune) As Boolean
Parameters
The high surrogate of the surrogate pair.
The low surrogate of the surrogate pair.
The rune that corresponds to the specified surrogate pair.
Returnstrue
if the operation succeeded; false
if the input values don't represent a well-formed UTF-16 surrogate pair.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4