public class ValidationUtil extends Object
Constructor and Description |
---|
ValidationUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isCKeyword(String token)
Is the token a C language keyword?
|
static boolean |
isCppKeyword(String token)
Is the token a C++ language keyword?
|
static boolean |
isCSharpKeyword(String token)
Is the token a C# language keyword?
|
static boolean |
isGolangKeyword(String token)
Is the token a Go language keyword?
|
static boolean |
isJavaKeyword(String token)
Is this token a Java keyword?
|
static boolean |
isSbeCName(String value)
Check value for validity of usage as a C identifier.
|
static boolean |
isSbeCppName(String value)
Check value for validity of usage as a C++ identifier.
|
static boolean |
isSbeCSharpName(String value)
"Check" value for validity of usage as a csharp identifier.
|
static boolean |
isSbeGolangName(String value)
"Check" value for validity of usage as a golang identifier.
|
static boolean |
isSbeJavaName(String value)
Check string for validity of usage as a Java identifier.
|
static boolean |
possibleCSharpKeyword(String value)
Is the value a possible C# language keyword?
|
public static boolean isSbeCName(String value)
value
- to checkpublic static boolean isCKeyword(String token)
token
- to be checked.public static boolean isSbeCppName(String value)
value
- to checkpublic static boolean isCppKeyword(String token)
token
- to be checked.public static boolean isSbeJavaName(String value)
value
- to checkpublic static boolean isJavaKeyword(String token)
token
- to be tested.public static boolean isSbeGolangName(String value)
identifier = letter { letter | unicode_digit } letter = unicode_letter | "_" .
unicode_letter and unicode_digit are defined in section 4.5 of the unicode standard at Unicode 8.0.0 and the Java Character and Digit functions are unicode friendly
value
- to checkpublic static boolean isGolangKeyword(String token)
token
- to be checked.public static boolean isSbeCSharpName(String value)
first subsequent* first is { @ | letter | underscore } subsequent is { first | digit | connecting | combining | formatting }*
letter is Lu, Ll, Lt, Lm, Lo, or Nl (possibly escaped) digit is Nd (possibly escaped) connecting is Pc (possibly escaped) combining is Mn or Mc (possibly escaped) formatting is Cf (possibly escaped)
so that all becomes: { @ | _ | Lu | Ll | Lt | Lm | Lo | Nl } { @ | _ | Lu | Ll | Lt | Lm | Lo | Nl | Nd | Pc | Mn | Mc | Cf}*
value
- to checkpublic static boolean isCSharpKeyword(String token)
token
- to be checked.public static boolean possibleCSharpKeyword(String value)
value
- to be checked.Copyright © 2013-2024 Real Logic Limited. All Rights Reserved.