Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 375ab5e in mainline for uspace/lib/c/include/str.h


Ignore:
Timestamp:
2011-08-24T20:10:43Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
eb660787
Parents:
7fadb65 (diff), 842a2d2 (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:

Merge from lp:~romanenko-oleg/helenos/fat.

File:
1 edited

Legend:

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

    r7fadb65 r375ab5e  
    11/*
    22 * Copyright (c) 2005 Martin Decky
     3 * Copyright (c) 2011 Oleg Romanenko
    34 * All rights reserved.
    45 *
     
    7172extern bool ascii_check(wchar_t ch);
    7273extern bool chr_check(wchar_t ch);
     74extern bool wstr_is_ascii(const wchar_t *wstr);
    7375
    7476extern int str_cmp(const char *s1, const char *s2);
     
    7981extern void str_append(char *dest, size_t size, const char *src);
    8082
     83extern int wstr_to_str(char *dest, size_t size, const wchar_t *src);
    8184extern int spascii_to_str(char *dest, size_t size, const uint8_t *src, size_t n);
    82 extern void wstr_to_str(char *dest, size_t size, const wchar_t *src);
    8385extern char *wstr_to_astr(const wchar_t *src);
    84 extern void str_to_wstr(wchar_t *dest, size_t dlen, const char *src);
    8586extern wchar_t *str_to_awstr(const char *src);
     87extern int str_to_wstr(wchar_t *dest, size_t dlen, const char *src);
     88extern int utf16_to_str(char *dest, size_t size, const uint16_t *src);
     89extern int str_to_utf16(uint16_t *dest, size_t size, const char *src);
    8690
    8791extern char *str_chr(const char *str, wchar_t ch);
    8892extern char *str_rchr(const char *str, wchar_t ch);
     93extern wchar_t *wstr_chr(const wchar_t *wstr, wchar_t ch);
     94extern wchar_t *wstr_rchr(const wchar_t *wstr, wchar_t ch);
    8995
    9096extern bool wstr_linsert(wchar_t *str, wchar_t ch, size_t pos, size_t max_pos);
     
    9399extern char *str_dup(const char *);
    94100extern char *str_ndup(const char *, size_t max_size);
     101
     102extern void str_reverse(char* begin, char* end);
     103extern int size_t_str(size_t value, int base, char* str, size_t size);
    95104
    96105extern int str_uint64(const char *, char **, unsigned int, bool, uint64_t *);
Note: See TracChangeset for help on using the changeset viewer.