Add const to a bunch of string APIs
This commit is contained in:
parent
47d4f9501f
commit
0f9a306e71
|
@ -689,12 +689,12 @@ int
|
||||||
FcStrCmp (const FcChar8 *s1, const FcChar8 *s2);
|
FcStrCmp (const FcChar8 *s1, const FcChar8 *s2);
|
||||||
|
|
||||||
int
|
int
|
||||||
FcUtf8ToUcs4 (FcChar8 *src_orig,
|
FcUtf8ToUcs4 (const FcChar8 *src_orig,
|
||||||
FcChar32 *dst,
|
FcChar32 *dst,
|
||||||
int len);
|
int len);
|
||||||
|
|
||||||
FcBool
|
FcBool
|
||||||
FcUtf8Len (FcChar8 *string,
|
FcUtf8Len (const FcChar8 *string,
|
||||||
int len,
|
int len,
|
||||||
int *nchar,
|
int *nchar,
|
||||||
int *wchar);
|
int *wchar);
|
||||||
|
@ -706,13 +706,13 @@ FcUcs4ToUtf8 (FcChar32 ucs4,
|
||||||
FcChar8 dest[FC_UTF8_MAX_LEN]);
|
FcChar8 dest[FC_UTF8_MAX_LEN]);
|
||||||
|
|
||||||
int
|
int
|
||||||
FcUtf16ToUcs4 (FcChar8 *src_orig,
|
FcUtf16ToUcs4 (const FcChar8 *src_orig,
|
||||||
FcEndian endian,
|
FcEndian endian,
|
||||||
FcChar32 *dst,
|
FcChar32 *dst,
|
||||||
int len); /* in bytes */
|
int len); /* in bytes */
|
||||||
|
|
||||||
FcBool
|
FcBool
|
||||||
FcUtf16Len (FcChar8 *string,
|
FcUtf16Len (const FcChar8 *string,
|
||||||
FcEndian endian,
|
FcEndian endian,
|
||||||
int len, /* in bytes */
|
int len, /* in bytes */
|
||||||
int *nchar,
|
int *nchar,
|
||||||
|
|
12
src/fcstr.c
12
src/fcstr.c
|
@ -125,11 +125,11 @@ FcStrCmp (const FcChar8 *s1, const FcChar8 *s2)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
FcUtf8ToUcs4 (FcChar8 *src_orig,
|
FcUtf8ToUcs4 (const FcChar8 *src_orig,
|
||||||
FcChar32 *dst,
|
FcChar32 *dst,
|
||||||
int len)
|
int len)
|
||||||
{
|
{
|
||||||
FcChar8 *src = src_orig;
|
const FcChar8 *src = src_orig;
|
||||||
FcChar8 s;
|
FcChar8 s;
|
||||||
int extra;
|
int extra;
|
||||||
FcChar32 result;
|
FcChar32 result;
|
||||||
|
@ -196,7 +196,7 @@ FcUtf8ToUcs4 (FcChar8 *src_orig,
|
||||||
}
|
}
|
||||||
|
|
||||||
FcBool
|
FcBool
|
||||||
FcUtf8Len (FcChar8 *string,
|
FcUtf8Len (const FcChar8 *string,
|
||||||
int len,
|
int len,
|
||||||
int *nchar,
|
int *nchar,
|
||||||
int *wchar)
|
int *wchar)
|
||||||
|
@ -255,12 +255,12 @@ FcUcs4ToUtf8 (FcChar32 ucs4,
|
||||||
(FcChar16) ((src)[endian == FcEndianBig ? 1 : 0]))
|
(FcChar16) ((src)[endian == FcEndianBig ? 1 : 0]))
|
||||||
|
|
||||||
int
|
int
|
||||||
FcUtf16ToUcs4 (FcChar8 *src_orig,
|
FcUtf16ToUcs4 (const FcChar8 *src_orig,
|
||||||
FcEndian endian,
|
FcEndian endian,
|
||||||
FcChar32 *dst,
|
FcChar32 *dst,
|
||||||
int len) /* in bytes */
|
int len) /* in bytes */
|
||||||
{
|
{
|
||||||
FcChar8 *src = src_orig;
|
const FcChar8 *src = src_orig;
|
||||||
FcChar16 a, b;
|
FcChar16 a, b;
|
||||||
FcChar32 result;
|
FcChar32 result;
|
||||||
|
|
||||||
|
@ -292,7 +292,7 @@ FcUtf16ToUcs4 (FcChar8 *src_orig,
|
||||||
}
|
}
|
||||||
|
|
||||||
FcBool
|
FcBool
|
||||||
FcUtf16Len (FcChar8 *string,
|
FcUtf16Len (const FcChar8 *string,
|
||||||
FcEndian endian,
|
FcEndian endian,
|
||||||
int len, /* in bytes */
|
int len, /* in bytes */
|
||||||
int *nchar,
|
int *nchar,
|
||||||
|
|
Loading…
Reference in New Issue