StringExtensionsNormalizeASCII Method
Normalizes the non-representable characters of the specified ASCII string.
Namespace: DevCase.Extensions.StringExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static string NormalizeASCII(
this string sender,
char normalizationChar = '.'
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function NormalizeASCII (
sender As String,
Optional normalizationChar As Char = "."C
) As String
Dim sender As String
Dim normalizationChar As Char
Dim returnValue As String
returnValue = sender.NormalizeASCII(normalizationChar)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static String^ NormalizeASCII(
String^ sender,
wchar_t normalizationChar = L'.'
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member NormalizeASCII :
sender : string *
?normalizationChar : char
(* Defaults:
let _normalizationChar = defaultArg normalizationChar '.'
*)
-> string
No code example is currently available or this language may not be supported.
- sender String
-
The source string.
- normalizationChar Char (Optional)
-
The character that must be used to replace non-representable chars.
Default character is: "."c
String
The formated string.
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim data As Byte() = {26, 69, 223, 163}
Dim str As String = Encoding.ASCII.GetString(data)
MessageBox.Show(str.NormalizeASCII(normalizationChar:="."c))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.