mblocal.h (ea4ac135ff6e5e1881e3ebe0e730bcf1223cfbe7) | mblocal.h (1949a3470f29c5edaa5fc2770c2886d653fa68d1) |
---|---|
1/*- 2 * Copyright (c) 2004 Tim J. Robbins. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 23 unchanged lines hidden (view full) --- 32#include <stddef.h> /* XXX for rune_t */ 33 34/* 35 * Conversion function pointers for current encoding. 36 */ 37extern size_t (*__mbrtowc)(wchar_t * __restrict, const char * __restrict, 38 size_t, mbstate_t * __restrict); 39extern int (*__mbsinit)(const mbstate_t *); | 1/*- 2 * Copyright (c) 2004 Tim J. Robbins. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 23 unchanged lines hidden (view full) --- 32#include <stddef.h> /* XXX for rune_t */ 33 34/* 35 * Conversion function pointers for current encoding. 36 */ 37extern size_t (*__mbrtowc)(wchar_t * __restrict, const char * __restrict, 38 size_t, mbstate_t * __restrict); 39extern int (*__mbsinit)(const mbstate_t *); |
40extern size_t (*__mbsrtowcs)(wchar_t * __restrict, const char ** __restrict, 41 size_t, mbstate_t * __restrict); | 40extern size_t (*__mbsnrtowcs)(wchar_t * __restrict, const char ** __restrict, 41 size_t, size_t, mbstate_t * __restrict); |
42extern size_t (*__wcrtomb)(char * __restrict, wchar_t, mbstate_t * __restrict); | 42extern size_t (*__wcrtomb)(char * __restrict, wchar_t, mbstate_t * __restrict); |
43extern size_t (*__wcsrtombs)(char * __restrict, const wchar_t ** __restrict, 44 size_t, mbstate_t * __restrict); | 43extern size_t (*__wcsnrtombs)(char * __restrict, const wchar_t ** __restrict, 44 size_t, size_t, mbstate_t * __restrict); |
45 46/* 47 * Conversion functions for "NONE"/C/POSIX encoding. 48 */ 49extern size_t _none_mbrtowc(wchar_t * __restrict, const char * __restrict, 50 size_t, mbstate_t * __restrict); 51extern int _none_mbsinit(const mbstate_t *); | 45 46/* 47 * Conversion functions for "NONE"/C/POSIX encoding. 48 */ 49extern size_t _none_mbrtowc(wchar_t * __restrict, const char * __restrict, 50 size_t, mbstate_t * __restrict); 51extern int _none_mbsinit(const mbstate_t *); |
52extern size_t _none_mbsrtowcs(wchar_t * __restrict, const char ** __restrict, 53 size_t, mbstate_t * __restrict); | 52extern size_t _none_mbsnrtowcs(wchar_t * __restrict, const char ** __restrict, 53 size_t, size_t, mbstate_t * __restrict); |
54extern size_t _none_wcrtomb(char * __restrict, wchar_t, 55 mbstate_t * __restrict); | 54extern size_t _none_wcrtomb(char * __restrict, wchar_t, 55 mbstate_t * __restrict); |
56extern size_t _none_wcsrtombs(char * __restrict, const wchar_t ** __restrict, 57 size_t, mbstate_t * __restrict); | 56extern size_t _none_wcsnrtombs(char * __restrict, const wchar_t ** __restrict, 57 size_t, size_t, mbstate_t * __restrict); |
58 | 58 |
59extern size_t __mbsrtowcs_std(wchar_t * __restrict, const char ** __restrict, 60 size_t, mbstate_t * __restrict); 61extern size_t __wcsrtombs_std(char * __restrict, const wchar_t ** __restrict, 62 size_t, mbstate_t * __restrict); | 59extern size_t __mbsnrtowcs_std(wchar_t * __restrict, const char ** __restrict, 60 size_t, size_t, mbstate_t * __restrict); 61extern size_t __wcsnrtombs_std(char * __restrict, const wchar_t ** __restrict, 62 size_t, size_t, mbstate_t * __restrict); |
63 64/* 65 * Rune emulation functions. 66 */ 67extern rune_t __emulated_sgetrune(const char *, size_t, const char **); 68extern int __emulated_sputrune(rune_t, char *, size_t, char **); 69 70#endif /* _MBLOCAL_H_ */ | 63 64/* 65 * Rune emulation functions. 66 */ 67extern rune_t __emulated_sgetrune(const char *, size_t, const char **); 68extern int __emulated_sputrune(rune_t, char *, size_t, char **); 69 70#endif /* _MBLOCAL_H_ */ |