Subversion Repositories HelenOS

Rev

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

Rev 4345 Rev 4347
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef KERN_STRING_H_
35
#ifndef KERN_STRING_H_
36
#define KERN_STRING_H_
36
#define KERN_STRING_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <typedefs.h>
-
 
39
 
-
 
40
#define UTF8_NO_LIMIT  ((index_t) -1)
-
 
41
 
-
 
42
extern char invalch;
-
 
43
 
-
 
44
extern wchar_t utf8_decode(const char *str, index_t *index, index_t limit);
-
 
45
extern bool utf8_encode(const wchar_t ch, char *str, index_t *index, index_t limit);
-
 
46
extern size_t utf8_count_bytes(const char *str, count_t count);
-
 
47
extern bool ascii_check(const wchar_t ch);
-
 
48
extern bool unicode_check(const wchar_t ch);
39
 
49
 
40
extern size_t strlen(const char *str);
50
extern size_t strlen(const char *str);
-
 
51
extern size_t strlen_utf8(const char *str);
-
 
52
extern size_t strlen_utf32(const wchar_t *str);
-
 
53
 
41
extern int strcmp(const char *src, const char *dst);
54
extern int strcmp(const char *src, const char *dst);
42
extern int strncmp(const char *src, const char *dst, size_t len);
55
extern int strncmp(const char *src, const char *dst, size_t len);
43
extern void strncpy(char *dest, const char *src, size_t len);
56
extern void strncpy(char *dest, const char *src, size_t len);
44
 
57
 
45
extern char *strchr(const char *s, int i);
58
extern char *strchr(const char *s, int i);