45 for (
i = 0;
i < char_count; ++
i)
121 }
while (
check != -1);
140 else if (
next < cChar)
223 cc[0] = pwChar[
s->base];
224 cc[1] = pwChar[
s->base-1];
241 cc[0] = pwChar[
s->base];
242 cc[1] = pwChar[
s->base-1];
259 cc[0] = pwChar[
s->base];
260 cc[1] = pwChar[
s->base-1];
270 if ((lexical(pwChar[
s->start])==
lex_Ra) &&
s->end >
s->start && lexical(pwChar[
s->start+1]) ==
lex_Halant)
292 for (
i =
s->end;
i >=
s->start;
i--)
300 while ((blwf =
Consonant_is_below_base_form(
hdc,
psa,
psc,
input,
s, lex, modern)) ||
Consonant_is_post_base_form(
hdc,
psa,
psc,
input,
s, lex, modern) || (pref =
Consonant_is_pre_base_form(
hdc,
psa,
psc,
input,
s, lex, modern)))
302 if (blwf &&
s->blwf == -1)
303 s->blwf =
s->base - 1;
304 if (pref &&
s->pref == -1)
305 s->pref =
s->base - 1;
307 for (
i =
s->base-1;
i >=
s->start;
i--)
318 if (
s->ralf ==
s->base)
327 unsigned int center = 0;
335 ERR(
"Failure to have required functions\n");
354 (*syllables)[*syllable_count].start =
index;
355 (*syllables)[*syllable_count].base = center;
356 (*syllables)[*syllable_count].ralf = -1;
357 (*syllables)[*syllable_count].blwf = -1;
358 (*syllables)[*syllable_count].pref = -1;
359 (*syllables)[*syllable_count].end =
next-1;
362 *syllable_count = (*syllable_count)+1;
364 else if (
index < cChar)
370 TRACE(
"Processed %i of %i characters into %i syllables\n",
index,cChar,*syllable_count);
380 ERR(
"Failure to have required functions\n");
385 for (
i = 0;
i < *syllable_count;
i++)
386 reorder_f(
input, &(*syllables)[
i], lex);
static void * heap_alloc(size_t len)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define check(expected, result)
GLuint GLuint GLsizei GLenum type
GLenum GLenum GLenum input
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static BOOL Consonant_is_ralf(HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache *psc, const WCHAR *pwChar, const IndicSyllable *s, lexical_function lexical)
static int parse_vowel_syllable(const WCHAR *input, unsigned int cChar, unsigned int start, unsigned int next, lexical_function lex)
static BOOL Consonant_is_post_base_form(HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache *psc, const WCHAR *pwChar, const IndicSyllable *s, lexical_function lexical, BOOL modern)
void Indic_ReorderCharacters(HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache *psc, WCHAR *input, unsigned int cChar, IndicSyllable **syllables, int *syllable_count, lexical_function lex, reorder_function reorder_f, BOOL modern)
static int Indic_process_next_syllable(const WCHAR *input, unsigned int cChar, unsigned int start, unsigned int *main, unsigned int next, lexical_function lex)
static int FindBaseConsonant(HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache *psc, const WCHAR *input, IndicSyllable *s, lexical_function lex, BOOL modern)
static int parse_consonant_syllable(const WCHAR *input, unsigned int cChar, unsigned int start, unsigned int *main, unsigned int next, lexical_function lex)
static BOOL Consonant_is_below_base_form(HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache *psc, const WCHAR *pwChar, const IndicSyllable *s, lexical_function lexical, BOOL modern)
void Indic_ParseSyllables(HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache *psc, const WCHAR *input, unsigned int cChar, IndicSyllable **syllables, int *syllable_count, lexical_function lex, BOOL modern)
static BOOL is_matra(int type)
static BOOL is_joiner(int type)
static int consonant_header(const WCHAR *input, unsigned int cChar, unsigned int start, unsigned int next, lexical_function lex)
static void debug_output_string(const WCHAR *str, unsigned int char_count, lexical_function f)
static BOOL Consonant_is_pre_base_form(HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache *psc, const WCHAR *pwChar, const IndicSyllable *s, lexical_function lexical, BOOL modern)
static SCRIPT_CACHE SCRIPT_ANALYSIS * psa
static SCRIPT_CACHE * psc
static unsigned __int64 next
vector< Header * > headers
int SHAPE_does_GSUB_feature_apply_to_chars(HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache *psc, const WCHAR *chars, int write_dir, int count, const char *feature)
static BOOL is_consonant(int type)
void(* reorder_function)(WCHAR *chars, IndicSyllable *syllable, lexical_function lex)
int(* lexical_function)(WCHAR c)