Added function to the parser for reading DAFSA encoding mode.

This commit is contained in:
Olle Liljenzin 2016-11-04 20:03:41 +01:00 committed by Tim Rühsen
parent 8c2bcd5a24
commit 86034ac7c9
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}