File: UniConversion.h

package info (click to toggle)
qscintilla 1.7.1-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 6,376 kB
  • ctags: 8,206
  • sloc: cpp: 47,784; ansic: 1,829; python: 161; makefile: 82
file content (12 lines) | stat: -rwxr-xr-x 582 bytes parent folder | download | duplicates (43)
1
2
3
4
5
6
7
8
9
10
11
12
// Scintilla source code edit control
/** @file UniConversion.h
 ** Functions to handle UFT-8 and UCS-2 strings.
 **/
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.

unsigned int UTF8Length(const wchar_t *uptr, unsigned int tlen);
void UTF8FromUCS2(const wchar_t *uptr, unsigned int tlen, char *putf, unsigned int len);
unsigned int UCS2Length(const char *s, unsigned int len);
unsigned int UCS2FromUTF8(const char *s, unsigned int len, wchar_t *tbuf, unsigned int tlen);