A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.char.issymbol below:

Char.IsSymbol Method (System) | Microsoft Learn

Char.IsSymbol Method Definition

Indicates whether a Unicode character is categorized as a symbol character.

Overloads IsSymbol(String, Int32)

Indicates whether the character at the specified position in a specified string is categorized as a symbol character.

IsSymbol(Char)

Indicates whether the specified Unicode character is categorized as a symbol character.

Examples

The following code example demonstrates IsSymbol.

using System;

public class IsSymbolSample {
    public static void Main() {
        string str = "non-symbolic characters";

        Console.WriteLine(Char.IsSymbol('+'));		// Output: "True"
        Console.WriteLine(Char.IsSymbol(str, 8));	// Output: "False"
    }
}
open System

let str = "non-symbolic characters"

printfn $"{Char.IsSymbol '+'}"      // Output: "True"
printfn $"{Char.IsSymbol(str, 8)}"  // Output: "False"
Module IsSymbolSample

    Sub Main()

        Dim str As String
        str = "non-symbolic characters"

        Console.WriteLine(Char.IsSymbol("+"c))      ' Output: "True"
        Console.WriteLine(Char.IsSymbol(str, 8))    ' Output: "False"

    End Sub

End Module

Valid symbols are members of the following categories in UnicodeCategory: MathSymbol, CurrencySymbol, ModifierSymbol, and OtherSymbol.

Symbols in the Unicode standard are a loosely defined set of characters that include the following:

IsSymbol(String, Int32)
Source:
Char.cs
Source:
Char.cs
Source:
Char.cs
Source:
Char.cs

Indicates whether the character at the specified position in a specified string is categorized as a symbol character.

public:
 static bool IsSymbol(System::String ^ s, int index);
public static bool IsSymbol(string s, int index);
static member IsSymbol : string * int -> bool
Public Shared Function IsSymbol (s As String, index As Integer) As Boolean
Parameters
index
Int32

The position of the character to evaluate in s.

Returns

true if the character at position index in s is a symbol character; otherwise, false.

Exceptions

index is less than zero or greater than the last position in s.

Remarks

Character positions in a string are indexed starting from zero.

Valid symbols are members of the following categories in System.Globalization.UnicodeCategory: MathSymbol, CurrencySymbol, ModifierSymbol, and OtherSymbol.

Symbols in the Unicode standard are a loosely defined set of characters that include the following:

See also IsSymbol(Char)
Source:
Char.cs
Source:
Char.cs
Source:
Char.cs
Source:
Char.cs

Indicates whether the specified Unicode character is categorized as a symbol character.

public:
 static bool IsSymbol(char c);
public static bool IsSymbol(char c);
static member IsSymbol : char -> bool
Public Shared Function IsSymbol (c As Char) As Boolean
Parameters
c
Char

The Unicode character to evaluate.

Returns

true if c is a symbol character; otherwise, false.

Remarks

Valid symbols are members of the following categories in UnicodeCategory: MathSymbol, CurrencySymbol, ModifierSymbol, and OtherSymbol.

Symbols in the Unicode standard are a loosely defined set of characters that include the following:

See also

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 article

Was 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