29 #include "allheaders.h" 53 int left,
int top,
int wid,
int hgt);
60 vector<string> *str_vec);
79 static unsigned char *GetImageData(Pix *pix,
80 int left,
int top,
int wid,
int hgt);
83 #endif // CUBE_UTILS_H
static char_32 * ToLower(const char_32 *str32, CharSet *char_set)
static bool ReadFileToString(const string &file_name, string *str)
static char_32 * ToUpper(const char_32 *str32, CharSet *char_set)
static double Cost2Prob(int cost)
static int Prob2Cost(double prob_val)
static void UTF32ToUTF8(const char_32 *utf32_str, string *str)
static int StrLen(const char_32 *str)
static void SplitStringUsing(const string &str, const string &delims, vector< string > *str_vec)
static bool IsCaseInvariant(const char_32 *str32, CharSet *char_set)
basic_string< char_32 > string_32
static CharSamp * CharSampleFromPix(Pix *pix, int left, int top, int wid, int hgt)
static int StrCmp(const char_32 *str1, const char_32 *str2)
static void UTF8ToUTF32(const char *utf8_str, string_32 *str32)
static Pix * PixFromCharSample(CharSamp *char_samp)
static char_32 * StrDup(const char_32 *str)