#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "wingdi.h"
#include "winnls.h"
#include "usp10.h"
#include "winternl.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "usp10_internal.h"
Go to the source code of this file.
|
enum | breaking_types {
b_BK =1
, b_CR
, b_LF
, b_CM
,
b_SG
, b_GL
, b_CB
, b_SP
,
b_ZW
, b_NL
, b_WJ
, b_JL
,
b_JV
, b_JT
, b_H2
, b_H3
,
b_XX
, b_OP
, b_CL
, b_CP
,
b_QU
, b_NS
, b_EX
, b_SY
,
b_IS
, b_PR
, b_PO
, b_NU
,
b_AL
, b_ID
, b_IN
, b_HY
,
b_BB
, b_BA
, b_SA
, b_AI
,
b_B2
, b_HL
, b_CJ
, b_RI
,
b_EB
, b_EM
, b_ZWJ
} |
|
enum | breaking_class { b_r =1
, b_s
, b_x
} |
|
◆ breaking_class
◆ breaking_types
Enumerator |
---|
b_BK | |
b_CR | |
b_LF | |
b_CM | |
b_SG | |
b_GL | |
b_CB | |
b_SP | |
b_ZW | |
b_NL | |
b_WJ | |
b_JL | |
b_JV | |
b_JT | |
b_H2 | |
b_H3 | |
b_XX | |
b_OP | |
b_CL | |
b_CP | |
b_QU | |
b_NS | |
b_EX | |
b_SY | |
b_IS | |
b_PR | |
b_PO | |
b_NU | |
b_AL | |
b_ID | |
b_IN | |
b_HY | |
b_BB | |
b_BA | |
b_SA | |
b_AI | |
b_B2 | |
b_HL | |
b_CJ | |
b_RI | |
b_EB | |
b_EM | |
b_ZWJ | |
Definition at line 42 of file breaking.c.
42 {
43 b_BK=1,
b_CR,
b_LF,
b_CM,
b_SG,
b_GL,
b_CB,
b_SP,
b_ZW,
b_NL,
b_WJ,
b_JL,
b_JV,
b_JT,
b_H2,
b_H3,
b_XX,
b_OP,
b_CL,
44 b_CP,
b_QU,
b_NS,
b_EX,
b_SY,
b_IS,
b_PR,
b_PO,
b_NU,
b_AL,
b_ID,
b_IN,
b_HY,
b_BB,
b_BA,
b_SA,
b_AI,
b_B2,
b_HL,
46};
◆ BREAK_line()
Definition at line 77 of file breaking.c.
78{
80 short *break_class;
81 short *break_before;
82
84
87
89 {
92
94
96 switch (break_class[
i])
97 {
102 break;
105 break;
106 }
107 }
108
109
110
112 {
113 switch(break_class[
i])
114 {
119 break_class[
i] =
b_AL;
120 break;
122 break_class[
i] =
b_NS;
123 break;
124 }
125 }
126
127
128 break_before[0] =
b_x;
130 {
131 switch(break_class[
i])
132 {
133
136 {
139 break;
140 }
146 break;
147
150 break;
153
157 break;
158 }
159 }
160
162
163
165 {
166 if (break_class[
i] ==
b_CM)
167 {
169 {
170 switch (break_class[
i-1])
171 {
178 break_class[
i] =
b_AL;
179 break;
180 default:
181 break_class[
i] = break_class[
i-1];
182 }
183 }
184 else break_class[
i] =
b_AL;
185 }
186 }
187
189 {
190 switch(break_class[
i])
191 {
192
197 break;
198
202
204 {
205 if (break_class[
i-1] !=
b_SP &&
206 break_class[
i-1] !=
b_BA &&
207 break_class[
i-1] !=
b_HY)
209 }
210 break;
211
218 break;
219
222 {
225 }
227 break;
228
233 if (break_class[
j] ==
b_OP)
234 {
237 }
238 break;
239
242 while(
j > 0 && break_class[
j] ==
b_SP)
244 if (break_class[
j] ==
b_CL || break_class[
j] ==
b_CP)
245 {
246 for (
j++;
j <=
i;
j++)
248 }
249 break;
250
255 if (break_class[
j] ==
b_B2)
256 {
259 }
260 break;
261 }
262 }
263
265
267 {
268 switch(break_class[
i])
269 {
270
274 break;
275
280 break;
281
286 break;
287
292 break;
296 break;
297
300 switch (break_class[
i+1])
301 {
305 }
306 break;
307
310 {
311 switch (break_class[
i-1])
312 {
319 }
320 }
321 break;
322 }
323
325 {
326
327 if ((break_class[
i] ==
b_ID && break_class[
i+1] ==
b_PO) ||
328 (break_class[
i] ==
b_AL && break_class[
i+1] ==
b_NU) ||
329 (break_class[
i] ==
b_HL && break_class[
i+1] ==
b_NU) ||
330 (break_class[
i] ==
b_NU && break_class[
i+1] ==
b_AL) ||
331 (break_class[
i] ==
b_NU && break_class[
i+1] ==
b_HL))
333
334 if ((break_class[
i] ==
b_PR && break_class[
i+1] ==
b_ID) ||
335 (break_class[
i] ==
b_PR && break_class[
i+1] ==
b_AL) ||
336 (break_class[
i] ==
b_PR && break_class[
i+1] ==
b_HL) ||
337 (break_class[
i] ==
b_PO && break_class[
i+1] ==
b_AL) ||
338 (break_class[
i] ==
b_PO && break_class[
i+1] ==
b_HL))
340
341
342 if ((break_class[
i] ==
b_CL && break_class[
i+1] ==
b_PO) ||
343 (break_class[
i] ==
b_CP && break_class[
i+1] ==
b_PO) ||
344 (break_class[
i] ==
b_CL && break_class[
i+1] ==
b_PR) ||
345 (break_class[
i] ==
b_CP && break_class[
i+1] ==
b_PR) ||
346 (break_class[
i] ==
b_NU && break_class[
i+1] ==
b_PO) ||
347 (break_class[
i] ==
b_NU && break_class[
i+1] ==
b_PR) ||
348 (break_class[
i] ==
b_PO && break_class[
i+1] ==
b_OP) ||
349 (break_class[
i] ==
b_PO && break_class[
i+1] ==
b_NU) ||
350 (break_class[
i] ==
b_PR && break_class[
i+1] ==
b_OP) ||
351 (break_class[
i] ==
b_PR && break_class[
i+1] ==
b_NU) ||
352 (break_class[
i] ==
b_HY && break_class[
i+1] ==
b_NU) ||
353 (break_class[
i] ==
b_IS && break_class[
i+1] ==
b_NU) ||
354 (break_class[
i] ==
b_NU && break_class[
i+1] ==
b_NU) ||
355 (break_class[
i] ==
b_SY && break_class[
i+1] ==
b_NU))
357
358
359 if (break_class[
i] ==
b_JL)
360 {
361 switch (break_class[
i+1])
362 {
368 }
369 }
370 if ((break_class[
i] ==
b_JV || break_class[
i] ==
b_H2) &&
371 (break_class[
i+1] ==
b_JV || break_class[
i+1] ==
b_JT))
373 if ((break_class[
i] ==
b_JT || break_class[
i] ==
b_H3) &&
374 break_class[
i+1] ==
b_JT)
376
377
378 switch (break_class[
i])
379 {
385 if (break_class[
i+1] ==
b_IN || break_class[
i+1] ==
b_PO)
387 }
388 if (break_class[
i] ==
b_PR)
389 {
390 switch (break_class[
i+1])
391 {
398 }
399 }
400
401
402 if ((break_class[
i] ==
b_AL && break_class[
i+1] ==
b_AL) ||
403 (break_class[
i] ==
b_AL && break_class[
i+1] ==
b_HL) ||
404 (break_class[
i] ==
b_HL && break_class[
i+1] ==
b_AL) ||
405 (break_class[
i] ==
b_HL && break_class[
i+1] ==
b_HL))
407
408
409 if ((break_class[
i] ==
b_IS && break_class[
i+1] ==
b_AL) ||
410 (break_class[
i] ==
b_IS && break_class[
i+1] ==
b_HL))
412
413
414 if ((break_class[
i] ==
b_AL || break_class[
i] ==
b_HL || break_class[
i] ==
b_NU) &&
415 break_class[
i+1] ==
b_OP)
417 if (break_class[
i] ==
b_CP &&
418 (break_class[
i+1] ==
b_AL || break_class[
i+1] ==
b_HL || break_class[
i+1] ==
b_NU))
420
421
422 if (break_class[
i] ==
b_RI && break_class[
i+1] ==
b_RI)
424 }
425 }
427
428
431
434 {
435 if (break_before[
i] !=
b_x)
436 {
439 }
440 }
441
444}
static unsigned short get_table_entry(const unsigned short *table, WCHAR ch)
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
static void else_break(short *before, short class)
static void debug_output_breaks(const short *breaks, int count)
GLuint GLuint GLsizei count
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
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 GLint GLint j
const unsigned short DECLSPEC_HIDDEN wine_linebreak_table[7216]
Referenced by ScriptBreak().
◆ debug_output_breaks()
◆ else_break()
Definition at line 72 of file breaking.c.
73{
75}
__inline int before(__u32 seq1, __u32 seq2)
Referenced by BREAK_line().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
uniscribe |
| ) |
|
◆ DECLSPEC_HIDDEN