Changeset d5a89a3 in mainline for boot/generic/include/str.h


Ignore:
Timestamp:
2019-02-11T22:31:04Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
aaf9789c
Parents:
e3272101 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merging with upstream/master

File:
1 edited

Legend:

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

    re3272101 rd5a89a3  
    11/*
    2  * Copyright (c) 2010 Martin Decky
     2 * Copyright (c) 2001-2004 Jakub Jermar
     3 * Copyright (c) 2005 Martin Decky
     4 * Copyright (c) 2011 Oleg Romanenko
    35 * All rights reserved.
    46 *
     
    3335#define BOOT_STR_H_
    3436
     37#include <errno.h>
    3538#include <stdbool.h>
    3639#include <stddef.h>
    3740
    38 /**< Common Unicode characters */
    39 #define U_SPECIAL  '?'
     41/* Common Unicode characters */
     42#define U_SPECIAL      '?'
    4043
    41 /**< No size limit constant */
     44/** No size limit constant */
    4245#define STR_NO_LIMIT  ((size_t) -1)
    4346
    44 extern wchar_t str_decode(const char *, size_t *, size_t);
    45 extern int chr_encode(wchar_t, char *, size_t *, size_t);
     47extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
     48extern errno_t chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz);
    4649
    47 extern size_t str_size(const char *);
    48 extern size_t str_lsize(const char *, size_t);
    49 extern size_t str_length(const char *);
     50extern size_t str_size(const char *str);
     51extern size_t str_lsize(const char *str, size_t max_len);
     52extern size_t str_length(const char *str);
    5053
    51 extern bool ascii_check(wchar_t);
    52 extern bool chr_check(wchar_t);
     54extern bool ascii_check(wchar_t ch);
     55extern bool chr_check(wchar_t ch);
    5356
    54 extern int str_cmp(const char *, const char *);
    55 extern void str_cpy(char *, size_t, const char *);
     57extern int str_cmp(const char *s1, const char *s2);
     58extern void str_cpy(char *dest, size_t size, const char *src);
    5659
    5760#endif
Note: See TracChangeset for help on using the changeset viewer.