Class NATOPhoneticAlphabetHelper
Helper for parsing and getting NATO code words for the latin alphabet.
public static class NATOPhoneticAlphabetHelper
- Inheritance
-
NATOPhoneticAlphabetHelper
- Inherited Members
Methods
GetLowerCase(char)
Get the word for the phonetic alphabet character in lower-case. Example: 'bravo'.
public static string GetLowerCase(char character)
Parameters
charactercharAny character in the ranges
'a'-'z','A'-'Z', or'0'-'9'.
Returns
Exceptions
GetProperCase(char)
Get the word for the phonetic alphabet character in proper-case. Example: 'Bravo'.
public static string GetProperCase(char character)
Parameters
charactercharAny character in the ranges
'a'-'z','A'-'Z', or'0'-'9'.
Returns
Exceptions
GetUpperCase(char)
Get the word for the phonetic alphabet character in upper-case. Example: 'BRAVO'.
public static string GetUpperCase(char character)
Parameters
charactercharAny character in the ranges
'a'-'z','A'-'Z', or'0'-'9'.
Returns
Exceptions
Parse(ReadOnlySpan<char>)
Attempts to identify the code word in word and output the character associated with it.
public static char Parse(ReadOnlySpan<char> word)
Parameters
wordReadOnlySpan<char>
Returns
- char
A character in the ranges
'a'-'z','A'-'Z', or'0'-'9'.
Exceptions
- FormatException
Failed to identify a code word.
TryParse(ReadOnlySpan<char>, out char)
Attempts to identify the code word in word and output the character associated with it.
public static bool TryParse(ReadOnlySpan<char> word, out char alphabetCharacter)
Parameters
wordReadOnlySpan<char>alphabetCharactercharA character in the ranges
'a'-'z','A'-'Z', or'0'-'9', orNULif parse failed.