~ubuntu-branches/ubuntu/gutsy/icu/gutsy

« back to all changes in this revision

Viewing changes to source/common/ubidiimp.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2005-05-21 22:44:31 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: package-import@ubuntu.com-20050521224431-r7rktfhnu1n4tf1g
Tags: 2.1-2.1
Rename icu-doc to icu21-doc. icu-doc is built by the icu28 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
/* Run structure for reordering --------------------------------------------- */
107
107
 
108
108
typedef struct Run {
109
 
    UTextOffset logicalStart,   /* first character of the run; b31 indicates even/odd level */
 
109
    int32_t logicalStart,   /* first character of the run; b31 indicates even/odd level */
110
110
                visualLimit;    /* last visual position of the run +1 */
111
111
} Run;
112
112
 
132
132
    const UChar *text;
133
133
 
134
134
    /* length of the current text */
135
 
    UTextOffset length;
 
135
    int32_t length;
136
136
 
137
137
    /* memory sizes in bytes */
138
 
    UTextOffset dirPropsSize, levelsSize, runsSize;
 
138
    int32_t dirPropsSize, levelsSize, runsSize;
139
139
 
140
140
    /* allocated memory */
141
141
    DirProp *dirPropsMemory;
163
163
 
164
164
    /* characters after trailingWSStart are WS and are */
165
165
    /* implicitly at the paraLevel (rule (L1)) - levels may not reflect that */
166
 
    UTextOffset trailingWSStart;
 
166
    int32_t trailingWSStart;
167
167
 
168
168
    /* fields for line reordering */
169
 
    UTextOffset runCount;     /* ==-1: runs not set up yet */
 
169
    int32_t runCount;     /* ==-1: runs not set up yet */
170
170
    Run *runs;
171
171
 
172
172
    /* for non-mixed text, we only need a tiny array of runs (no malloc()) */
175
175
 
176
176
/* helper function to (re)allocate memory if allowed */
177
177
U_CFUNC UBool
178
 
ubidi_getMemory(void **pMemory, UTextOffset *pSize, UBool mayAllocate, UTextOffset sizeNeeded);
 
178
ubidi_getMemory(void **pMemory, int32_t *pSize, UBool mayAllocate, int32_t sizeNeeded);
179
179
 
180
180
/* helper macros for each allocated array in UBiDi */
181
181
#define getDirPropsMemory(pBiDi, length) \