Lines Matching refs:ptext
96 Preedit_DeleteText(preedit_text_t *ptext, int from, int howmuch) in Preedit_DeleteText() argument
100 if (ptext->nLength == 0) in Preedit_DeleteText()
102 ptext->nLength = from; in Preedit_DeleteText()
108 if (to == (int)ptext->nLength) in Preedit_DeleteText()
111 ptext->nLength = from; in Preedit_DeleteText()
114 if (to < (int)ptext->nLength) in Preedit_DeleteText()
117 memmove( (void*)(ptext->pUnicodeBuffer + from), in Preedit_DeleteText()
118 (void*)(ptext->pUnicodeBuffer + to), in Preedit_DeleteText()
119 (ptext->nLength - to) * sizeof(sal_Unicode)); in Preedit_DeleteText()
120 memmove( (void*)(ptext->pCharStyle + from), in Preedit_DeleteText()
121 (void*)(ptext->pCharStyle + to), in Preedit_DeleteText()
122 (ptext->nLength - to) * sizeof(XIMFeedback)); in Preedit_DeleteText()
123 ptext->nLength -= howmuch; in Preedit_DeleteText()
130 from, to, ptext->nLength ); in Preedit_DeleteText()
133 ptext->nLength = from; in Preedit_DeleteText()
137 ptext->pUnicodeBuffer[ptext->nLength] = (sal_Unicode)0; in Preedit_DeleteText()
143 enlarge_buffer ( preedit_text_t *ptext, int nnewlimit ) in enlarge_buffer() argument
145 size_t nnewsize = ptext->nSize; in enlarge_buffer()
150 ptext->nSize = nnewsize; in enlarge_buffer()
151 ptext->pUnicodeBuffer = (sal_Unicode*)realloc((void*)ptext->pUnicodeBuffer, in enlarge_buffer()
153 ptext->pCharStyle = (XIMFeedback*)realloc((void*)ptext->pCharStyle, in enlarge_buffer()
263 Preedit_UpdateAttributes ( preedit_text_t* ptext, XIMFeedback* feedback, in Preedit_UpdateAttributes() argument
266 if ( (from + amount) > (int)ptext->nLength ) in Preedit_UpdateAttributes()
270 from, amount, ptext->nLength ); in Preedit_UpdateAttributes()
276 memcpy ( ptext->pCharStyle + from, in Preedit_UpdateAttributes()