• API Overview
  • EBICS API
  • FinTS API
  • XS2A API
  • SEPA API
Search Results for

    Class SwiftCharset

    Collects utility methods about SWIFT character sets.

    Inheritance
    System.Object
    SwiftCharset
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Subsembly.Swift
    Assembly: Subsembly.Sepa.dll
    Syntax
    public static class SwiftCharset

    Methods

    IsAlpha(Char)

    Indicates whether the given character belongs to the SWIFT Alpha character set.

    Declaration
    public static bool IsAlpha(char ch)
    Parameters
    Type Name Description
    System.Char ch

    Character to test.

    Returns
    Type Description
    System.Boolean

    True if the character is an upper case letter in the range from 'A' through 'Z'.

    IsAlpha(String)

    Tests whether the entire string contains only characters from the SWIFT Alpha character set.

    Declaration
    public static bool IsAlpha(string s)
    Parameters
    Type Name Description
    System.String s

    The string to test.

    Returns
    Type Description
    System.Boolean

    True if all characters are upper case letters in the range from 'A' through 'Z'.

    IsAlphaNumeric(Char)

    Indicates whether the given character belongs to the SWIFT AlphaNumeric character set.

    Declaration
    public static bool IsAlphaNumeric(char ch)
    Parameters
    Type Name Description
    System.Char ch

    Character to test.

    Returns
    Type Description
    System.Boolean

    True if the character is an upper case letter in the range from 'A' through 'Z' or a digit in the range from '0' through '9'.

    IsAlphaNumeric(String)

    Tests whether the entire string contains only characters from the SWIFT AlphaNumeric character set.

    Declaration
    public static bool IsAlphaNumeric(string s)
    Parameters
    Type Name Description
    System.String s

    The string to test.

    Returns
    Type Description
    System.Boolean

    True if all characters are upper case letters in the range from 'A' through 'Z' or digits in the range from '0' through '9'.

    IsDecimal(Char)

    Indicates whether the given character belongs to the SWIFT Decimal character set.

    Declaration
    public static bool IsDecimal(char ch)
    Parameters
    Type Name Description
    System.Char ch

    Character to test.

    Returns
    Type Description
    System.Boolean

    True if the character is a digit in the range from '0' through '9' or the comma ','.

    IsDecimal(String)

    Tests whether the entire string contains only characters from the SWIFT Decimal character set.

    Declaration
    public static bool IsDecimal(string s)
    Parameters
    Type Name Description
    System.String s

    The string to test.

    Returns
    Type Description
    System.Boolean

    True if all characters are digits in the range from '0' through '9' and there was at most one comma ','.

    IsInCharset(Char, SwiftCharsets)

    Test whether a character belongs to a particular character set.

    Declaration
    public static bool IsInCharset(char ch, SwiftCharsets nCharset)
    Parameters
    Type Name Description
    System.Char ch

    Character to test.

    SwiftCharsets nCharset

    A SwiftCharsets value that selects the character set to check against.

    Returns
    Type Description
    System.Boolean

    True if the character belongs to the character set given by the nCharset parameter.

    IsInCharset(String, SwiftCharsets)

    Declaration
    public static bool IsInCharset(string s, SwiftCharsets nCharset)
    Parameters
    Type Name Description
    System.String s
    SwiftCharsets nCharset
    Returns
    Type Description
    System.Boolean

    IsNumeric(Char)

    Indicates whether the given character belongs to the SWIFT Numeric character set.

    Declaration
    public static bool IsNumeric(char ch)
    Parameters
    Type Name Description
    System.Char ch

    Character to test.

    Returns
    Type Description
    System.Boolean

    True if the character is a digit in the range from '0' through '9'.

    IsNumeric(String)

    Tests whether the entire string contains only characters from the SWIFT Numeric character set.

    Declaration
    public static bool IsNumeric(string s)
    Parameters
    Type Name Description
    System.String s

    The string to test.

    Returns
    Type Description
    System.Boolean

    True if all characters are digits in the range from '0' through '9'.

    IsSwift(Char)

    Indicates whether the given character may appear in a SWIFT message at all.

    Declaration
    public static bool IsSwift(char ch)
    Parameters
    Type Name Description
    System.Char ch

    Character to test.

    Returns
    Type Description
    System.Boolean

    True if the character is a valid character for a SWIFT message, i.e. it belongs to the All character set.

    IsSwift(String)

    Tests whether the entire string contains only characters that may appear in a SWIFT message.

    Declaration
    public static bool IsSwift(string s)
    Parameters
    Type Name Description
    System.String s

    The string to test.

    Returns
    Type Description
    System.Boolean

    True if all characters are valid characters for a SWIFT message, i.e. all belong to the All character set.

    In This Article
    Back to top Copyright 2009-2025 Subsembly GmbH