Added function to the parser for reading DAFSA encoding mode.
This commit is contained in:
parent
8c2bcd5a24
commit
86034ac7c9
|
@ -275,3 +275,11 @@ int _HIDDEN LookupStringInFixedSet(const unsigned char* graph,
|
|||
|
||||
return -1; /* No match */
|
||||
}
|
||||
|
||||
/* prototype to skip warning with -Wmissing-prototypes */
|
||||
int _HIDDEN GetUtfMode(const unsigned char *graph, size_t length);
|
||||
|
||||
int _HIDDEN GetUtfMode(const unsigned char *graph, size_t length)
|
||||
{
|
||||
return length > 0 && graph[length - 1] < 0x80;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue