Subversion Repositories HelenOS

Rev

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

Rev 4212 Rev 4223
Line 35... Line 35...
35
#ifndef KERN_STRING_H_
35
#ifndef KERN_STRING_H_
36
#define KERN_STRING_H_
36
#define KERN_STRING_H_
37
 
37
 
38
#include <typedefs.h>
38
#include <typedefs.h>
39
 
39
 
-
 
40
/**< Common Unicode characters */
-
 
41
#define U_SPECIAL      '?'
-
 
42
 
-
 
43
#define U_LEFT_ARROW   0x2190
-
 
44
#define U_UP_ARROW     0x2191
-
 
45
#define U_RIGHT_ARROW  0x2192
-
 
46
#define U_DOWN_ARROW   0x2193
-
 
47
 
-
 
48
#define U_PAGE_UP      0x21de
-
 
49
#define U_PAGE_DOWN    0x21df
-
 
50
 
-
 
51
#define U_HOME_ARROW   0x21f1
-
 
52
#define U_END_ARROW    0x21f2
-
 
53
 
-
 
54
#define U_NULL         0x2400
-
 
55
#define U_ESCAPE       0x241b
-
 
56
#define U_DELETE       0x2421
-
 
57
 
-
 
58
#define U_CURSOR       0x2588
-
 
59
 
-
 
60
/**< No size limit constant */
40
#define STR_NO_LIMIT  ((size_t) -1)
61
#define STR_NO_LIMIT  ((size_t) -1)
41
 
62
 
42
/**< Maximum size of a string containing cnt characters */
63
/**< Maximum size of a string containing cnt characters */
43
#define STR_BOUNDS(cnt)  (cnt << 2)
64
#define STR_BOUNDS(cnt)  (cnt << 2)
44
 
65
 
45
extern char invalch;
-
 
46
 
-
 
47
extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
66
extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
48
extern int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz);
67
extern int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz);
49
 
68
 
50
extern size_t str_size(const char *str);
69
extern size_t str_size(const char *str);
51
extern size_t wstr_size(const wchar_t *str);
70
extern size_t wstr_size(const wchar_t *str);