tesseract
5.0.0-alpha-619-ge9db
|
#include <stdarg.h>
#include <string.h>
#include "third_party/utf/utf.h"
#include "third_party/utf/utfdef.h"
Go to the source code of this file.
Enumerations | |
enum | { Bit1 = 7, Bitx = 6, Bit2 = 5, Bit3 = 4, Bit4 = 3, Bit5 = 2, T1 = ((1<<(Bit1+1))-1) ^ 0xFF, Tx = ((1<<(Bitx+1))-1) ^ 0xFF, T2 = ((1<<(Bit2+1))-1) ^ 0xFF, T3 = ((1<<(Bit3+1))-1) ^ 0xFF, T4 = ((1<<(Bit4+1))-1) ^ 0xFF, T5 = ((1<<(Bit5+1))-1) ^ 0xFF, Rune1 = (1<<(Bit1+0*Bitx))-1, Rune2 = (1<<(Bit2+1*Bitx))-1, Rune3 = (1<<(Bit3+2*Bitx))-1, Rune4 = (1<<(Bit4+3*Bitx))-1, Maskx = (1<<Bitx)-1, Testx = Maskx ^ 0xFF, Bad = Runeerror } |
Functions | |
int | charntorune (Rune *rune, const char *str, int length) |
int | chartorune (Rune *rune, const char *str) |
int | isvalidcharntorune (const char *str, int length, Rune *rune, int *consumed) |
int | runetochar (char *str, const Rune *rune) |
int | runelen (Rune rune) |
int | runenlen (const Rune *r, int nrune) |
int | fullrune (const char *str, int n) |
anonymous enum |
int fullrune | ( | const char * | str, |
int | n | ||
) |
int isvalidcharntorune | ( | const char * | str, |
int | length, | ||
Rune * | rune, | ||
int * | consumed | ||
) |
int runelen | ( | Rune | rune | ) |