Class JSONIdentifiers
Identifier validation and other utilities in context of JSON grammar
Inheritance
System.Object
JSONIdentifiers
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: Azos.CodeAnalysis.JSON
Assembly: Azos.dll
Syntax
public static class JSONIdentifiers
Methods
Validate(String)
Checks whether supplied string is a valid JSON grammar identifier
Declaration
public static bool Validate(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id |
Returns
Type | Description |
---|---|
System.Boolean |
ValidateChar(Char)
Checks whether supplied char is suitable for a part of JSON identifier
Declaration
public static bool ValidateChar(char c)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c |
Returns
Type | Description |
---|---|
System.Boolean |
ValidateDigit(Char)
Checks to see whether supplied char is a digit
Declaration
public static bool ValidateDigit(char c)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c |
Returns
Type | Description |
---|---|
System.Boolean |