Class SwiftCharset
Collects utility methods about SWIFT character sets.
Inheritance
Inherited Members
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|