27 return ((
sizeof(
WCHAR) * nLen) + 128) & ~63;
71 s->szData[
s->nLen] = 0;
91 for (
i = 0;
i < nMaxChars;
i++)
92 s->szData[
i] = cRepeat;
99 if (
s->free)
s->free(
s );
111 if( new_len >
s->nBuffer )
115 if (!
new)
return FALSE;
119 memmove(
s->szData + ofs +
len,
s->szData + ofs, (
s->nLen - ofs + 1) *
sizeof(
WCHAR) );
137 assert(charidx<=orig->nLen);
142 orig->
nLen = charidx;
143 orig->
szData[charidx] =
'\0';
149 int end_ofs = nVChar + nChars;
154 assert(end_ofs <= s->nLen);
156 memmove(
s->szData + nVChar,
s->szData + end_ofs,
157 (
s->nLen - end_ofs + 1) *
sizeof(
WCHAR));
167 TRACE(
"s==%s, start==%d, len==%d, code==%d\n",
229 if (!psz)
return NULL;
240 if(!nChars)
return NULL;
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
static void * heap_realloc(void *mem, size_t len)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define WideCharToMultiByte
#define MultiByteToWideChar
BOOL ME_InsertString(ME_String *s, int ofs, const WCHAR *insert, int len)
void ME_DestroyString(ME_String *s)
ME_String * ME_MakeStringEmpty(int nMaxChars)
BOOL ME_AppendString(ME_String *s, const WCHAR *append, int len)
void ME_EndToUnicode(LONG codepage, LPVOID psz)
ME_String * ME_MakeStringN(LPCWSTR szText, int nMaxChars)
static int ME_WordBreakProc(LPWSTR s, INT start, INT len, INT code)
static void heap_string_free(ME_String *s)
static int ME_GetOptimalBuffer(int nLen)
ME_String * ME_MakeStringConst(const WCHAR *str, int len)
void ME_StrDeleteV(ME_String *s, int nVChar, int nChars)
static ME_String * make_string(void(*free)(ME_String *))
ME_String * ME_MakeStringR(WCHAR cRepeat, int nMaxChars)
int ME_CallWordBreakProc(ME_TextEditor *editor, WCHAR *str, INT len, INT start, INT code)
LPWSTR ME_ToUnicode(LONG codepage, LPVOID psz, INT *len)
ME_String * ME_VSplitString(ME_String *orig, int charidx)
static int ME_IsWSpace(WCHAR ch)
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 void append(struct dump_context *dc, const void *data, unsigned size)
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
EDITWORDBREAKPROCW pfnWordBreak
static void buffer_size(GLcontext *ctx, GLuint *width, GLuint *height)