Ignore:
File:
1 edited

Legend:

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

    rd066259 rd735e2e  
    11/*
    2  * Copyright (c) 2001-2004 Jakub Jermar
    3  * Copyright (c) 2005 Martin Decky
    4  * Copyright (c) 2011 Oleg Romanenko
     2 * Copyright (c) 2010 Martin Decky
    53 * All rights reserved.
    64 *
     
    3533#define BOOT_STR_H_
    3634
    37 #include <errno.h>
    3835#include <stdbool.h>
    3936#include <stddef.h>
    4037
    41 /* Common Unicode characters */
    42 #define U_SPECIAL      '?'
     38/**< Common Unicode characters */
     39#define U_SPECIAL  '?'
    4340
    44 /** No size limit constant */
     41/**< No size limit constant */
    4542#define STR_NO_LIMIT  ((size_t) -1)
    4643
    47 extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
    48 extern errno_t chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz);
     44extern wchar_t str_decode(const char *, size_t *, size_t);
     45extern int chr_encode(wchar_t, char *, size_t *, size_t);
    4946
    50 extern size_t str_size(const char *str);
    51 extern size_t str_lsize(const char *str, size_t max_len);
    52 extern size_t str_length(const char *str);
     47extern size_t str_size(const char *);
     48extern size_t str_lsize(const char *, size_t);
     49extern size_t str_length(const char *);
    5350
    54 extern bool ascii_check(wchar_t ch);
    55 extern bool chr_check(wchar_t ch);
     51extern bool ascii_check(wchar_t);
     52extern bool chr_check(wchar_t);
    5653
    57 extern int str_cmp(const char *s1, const char *s2);
    58 extern void str_cpy(char *dest, size_t size, const char *src);
     54extern int str_cmp(const char *, const char *);
     55extern void str_cpy(char *, size_t, const char *);
    5956
    6057#endif
Note: See TracChangeset for help on using the changeset viewer.