Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/str.h

    rb49d872 r059a8e4  
    3939#include <mem.h>
    4040#include <sys/types.h>
    41 #include <stdbool.h>
     41#include <bool.h>
    4242
    4343#define U_SPECIAL  '?'
     
    5656
    5757extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
    58 extern wchar_t str_decode_reverse(const char *str, size_t *offset, size_t sz);
    5958extern int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz);
    6059
     
    7473extern size_t wstr_nlength(const wchar_t *str, size_t size);
    7574
    76 extern size_t chr_width(wchar_t ch);
    77 extern size_t str_width(const char *str);
    78 
    7975extern bool ascii_check(wchar_t ch);
    8076extern bool chr_check(wchar_t ch);
     
    8278extern int str_cmp(const char *s1, const char *s2);
    8379extern int str_lcmp(const char *s1, const char *s2, size_t max_len);
    84 
    85 extern bool str_test_prefix(const char *s, const char *p);
    8680
    8781extern void str_cpy(char *dest, size_t size, const char *src);
     
    109103extern char *str_ndup(const char *, size_t max_size);
    110104
    111 extern int str_uint8_t(const char *, const char **, unsigned int, bool,
    112     uint8_t *);
    113 extern int str_uint16_t(const char *, const char **, unsigned int, bool,
    114     uint16_t *);
    115 extern int str_uint32_t(const char *, const char **, unsigned int, bool,
    116     uint32_t *);
    117 extern int str_uint64_t(const char *, const char **, unsigned int, bool,
    118     uint64_t *);
    119 extern int str_size_t(const char *, const char **, unsigned int, bool,
    120     size_t *);
     105extern int str_uint8_t(const char *, char **, unsigned int, bool, uint8_t *);
     106extern int str_uint16_t(const char *, char **, unsigned int, bool, uint16_t *);
     107extern int str_uint32_t(const char *, char **, unsigned int, bool, uint32_t *);
     108extern int str_uint64_t(const char *, char **, unsigned int, bool, uint64_t *);
     109extern int str_size_t(const char *, char **, unsigned int, bool, size_t *);
    121110
    122111extern void order_suffix(const uint64_t, uint64_t *, char *);
Note: See TracChangeset for help on using the changeset viewer.