Subversion Repositories HelenOS

Rev

Rev 4296 | Rev 4668 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4296 Rev 4420
Line 40... Line 40...
40
#include <bool.h>
40
#include <bool.h>
41
 
41
 
42
#define U_SPECIAL      '?'
42
#define U_SPECIAL      '?'
43
#define U_BOM          0xfeff
43
#define U_BOM          0xfeff
44
 
44
 
45
/**< No size limit constant */
45
/** No size limit constant */
46
#define STR_NO_LIMIT  ((size_t) -1)
46
#define STR_NO_LIMIT  ((size_t) -1)
47
 
47
 
48
/**< Maximum size of a string containing @c length characters */
48
/** Maximum size of a string containing @c length characters */
49
#define STR_BOUNDS(length)  ((length) << 2)
49
#define STR_BOUNDS(length)  ((length) << 2)
50
 
50
 
51
extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
51
extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
52
extern int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz);
52
extern int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz);
53
 
53