Changeset d5a89a3 in mainline for uspace/lib/c/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
  • uspace/lib/c/include/str.h

    re3272101 rd5a89a3  
    11/*
     2 * Copyright (c) 2001-2004 Jakub Jermar
    23 * Copyright (c) 2005 Martin Decky
    34 * Copyright (c) 2011 Oleg Romanenko
     
    3435 */
    3536
    36 #ifndef LIBC_STR_H_
    37 #define LIBC_STR_H_
     37#ifndef _LIBC_STR_H_
     38#define _LIBC_STR_H_
    3839
    3940#ifdef __cplusplus
     
    4243
    4344#include <errno.h>
    44 #include <mem.h>
     45#include <stdbool.h>
    4546#include <stddef.h>
    4647#include <stdint.h>
    47 #include <stdbool.h>
    4848
    49 #define U_SPECIAL  '?'
     49#include <mem.h>
     50
     51/* Common Unicode characters */
     52#define U_SPECIAL      '?'
    5053
    5154/** No size limit constant */
     
    6366extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
    6467extern wchar_t str_decode_reverse(const char *str, size_t *offset, size_t sz);
    65 extern errno_t chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz);
     68extern errno_t chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz);
    6669
    6770extern size_t str_size(const char *str);
     
    116119extern bool wstr_remove(wchar_t *str, size_t pos);
    117120
    118 extern char *str_dup(const char *);
    119 extern char *str_ndup(const char *, size_t max_size);
     121extern char *str_dup(const char *src);
     122extern char *str_ndup(const char *src, size_t n);
    120123
    121124extern char *str_tok(char *, const char *, char **);
Note: See TracChangeset for help on using the changeset viewer.