Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/str.h

    rd066259 r174156fd  
    11/*
    22 * Copyright (c) 2001-2004 Jakub Jermar
    3  * Copyright (c) 2005 Martin Decky
    4  * Copyright (c) 2011 Oleg Romanenko
    53 * All rights reserved.
    64 *
     
    3836#define KERN_STR_H_
    3937
    40 #include <errno.h>
    4138#include <stdbool.h>
    4239#include <stddef.h>
    4340#include <stdint.h>
     41#include <errno.h>
    4442
    45 /* Common Unicode characters */
     43/**< Common Unicode characters */
    4644#define U_SPECIAL      '?'
    4745
     
    6361#define U_CURSOR       0x2588
    6462
    65 /** No size limit constant */
     63/**< No size limit constant */
    6664#define STR_NO_LIMIT  ((size_t) -1)
    6765
    68 /** Maximum size of a string containing @c length characters */
    69 #define STR_BOUNDS(length)  ((length) << 2)
     66/**< Maximum size of a string containing cnt characters */
     67#define STR_BOUNDS(cnt)  ((cnt) << 2)
    7068
    7169extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
     
    9492extern void wstr_to_str(char *dest, size_t size, const wchar_t *src);
    9593
     94extern char *str_dup(const char *src);
     95extern char *str_ndup(const char *src, size_t n);
     96
    9697extern char *str_chr(const char *str, wchar_t ch);
    9798
     
    99100extern bool wstr_remove(wchar_t *str, size_t pos);
    100101
    101 extern char *str_dup(const char *src);
    102 extern char *str_ndup(const char *src, size_t n);
    103 
    104 extern errno_t str_uint64_t(const char *, char **, unsigned int, bool,
    105     uint64_t *);
     102extern errno_t str_uint64_t(const char *, char **, unsigned int, bool, uint64_t *);
    106103
    107104extern void order_suffix(const uint64_t, uint64_t *, char *);
Note: See TracChangeset for help on using the changeset viewer.