diff options
author | Keith Packard <keithp@keithp.com> | 2002-08-24 20:08:53 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2002-08-24 20:08:53 +0000 |
commit | 0f9a306e710b3c03cd82b8234ae840558d4b886f (patch) | |
tree | b2c7c200a652ce77963c34c0addaf0cf594c8432 /src | |
parent | 47d4f9501fe21603feb5f3f233ea3bc6ec15f494 (diff) |
Add const to a bunch of string APIs
Diffstat (limited to 'src')
-rw-r--r-- | src/fcstr.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/fcstr.c b/src/fcstr.c index 940bf49..fadc1de 100644 --- a/src/fcstr.c +++ b/src/fcstr.c @@ -125,14 +125,14 @@ FcStrCmp (const FcChar8 *s1, const FcChar8 *s2) } int -FcUtf8ToUcs4 (FcChar8 *src_orig, - FcChar32 *dst, - int len) +FcUtf8ToUcs4 (const FcChar8 *src_orig, + FcChar32 *dst, + int len) { - FcChar8 *src = src_orig; - FcChar8 s; - int extra; - FcChar32 result; + const FcChar8 *src = src_orig; + FcChar8 s; + int extra; + FcChar32 result; if (len == 0) return 0; @@ -196,10 +196,10 @@ FcUtf8ToUcs4 (FcChar8 *src_orig, } FcBool -FcUtf8Len (FcChar8 *string, - int len, - int *nchar, - int *wchar) +FcUtf8Len (const FcChar8 *string, + int len, + int *nchar, + int *wchar) { int n; int clen; @@ -255,14 +255,14 @@ FcUcs4ToUtf8 (FcChar32 ucs4, (FcChar16) ((src)[endian == FcEndianBig ? 1 : 0])) int -FcUtf16ToUcs4 (FcChar8 *src_orig, - FcEndian endian, - FcChar32 *dst, - int len) /* in bytes */ +FcUtf16ToUcs4 (const FcChar8 *src_orig, + FcEndian endian, + FcChar32 *dst, + int len) /* in bytes */ { - FcChar8 *src = src_orig; - FcChar16 a, b; - FcChar32 result; + const FcChar8 *src = src_orig; + FcChar16 a, b; + FcChar32 result; if (len < 2) return 0; @@ -292,11 +292,11 @@ FcUtf16ToUcs4 (FcChar8 *src_orig, } FcBool -FcUtf16Len (FcChar8 *string, - FcEndian endian, - int len, /* in bytes */ - int *nchar, - int *wchar) +FcUtf16Len (const FcChar8 *string, + FcEndian endian, + int len, /* in bytes */ + int *nchar, + int *wchar) { int n; int clen; |