Lines Matching refs:sortbuf
32 struct ucs4_with_ccc *sortbuf; /* array of size 2 * sortbuf_allocated */
50 sortbuf = sortbuf_preallocated;
151 gl_uninorm_decompose_merge_sort_inplace (sortbuf, sortbuf_count,
152 sortbuf + sortbuf_count);
162 non-starter, the sortbuf also starts with a
168 2. If the sortbuf has more than one character, check
173 3. If only one character is left in sortbuf, check
176 if (sortbuf_count > 0 && sortbuf[0].ccc == 0)
180 if (sortbuf[j].ccc > sortbuf[j - 1].ccc)
183 composer (sortbuf[0].code, sortbuf[j].code);
188 sortbuf[0].code = combined;
189 /* sortbuf[0].ccc = 0, still valid. */
191 sortbuf[k - 1] = sortbuf[k];
201 composer (sortbuf[0].code, uc);
207 characters. So don't put it into sortbuf[0] in
217 ucs4_t muc = sortbuf[j].code;
295 /* sortbuf is now empty. */
303 /* Append (uc, ccc) to sortbuf. */
313 memcpy (new_sortbuf, sortbuf,
315 if (sortbuf != sortbuf_preallocated)
316 free (sortbuf);
317 sortbuf = new_sortbuf;
319 sortbuf[sortbuf_count].code = uc;
320 sortbuf[sortbuf_count].ccc = ccc;
359 if (sortbuf != sortbuf_preallocated)
360 free (sortbuf);
368 if (sortbuf != sortbuf_preallocated)
369 free (sortbuf);