CogOCRMaxChar GetCharCodeFromString Method (String, String)Cognex VisionPro 9.20
Returns the UTF 32-bit charcode that represents the letter in the input string.

Namespace: Cognex.VisionPro.OCRMax
Assembly: Cognex.VisionPro.OCRMax (in Cognex.VisionPro.OCRMax.dll) Version: 80.0.0.0
Syntax

public static int GetCharCodeFromString(
	string input,
	string unknownCharacterMarker
)

Parameters

input
Type: System String
The string to convert to character codes.
unknownCharacterMarker
Type: System String
If the input string matches the unknownCharacterMarker the special unknown char code value (0xF800) is returned.

Return Value

Type: Int32
Exceptions

ExceptionCondition
ArgumentException Thrown if the string maps to more than a single character code.
ArgumentNullException Thrown if input is null.
See Also