Changeset 00aece0 in mainline for uspace/lib/c/include/str.h


Ignore:
Timestamp:
2012-02-18T16:47:38Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4449c6c
Parents:
bd5f3b7 (diff), f943dd3 (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 mainline changes.

File:
1 edited

Legend:

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

    rbd5f3b7 r00aece0  
    11/*
    22 * Copyright (c) 2005 Martin Decky
     3 * Copyright (c) 2011 Oleg Romanenko
    34 * All rights reserved.
    45 *
     
    8485extern void str_to_wstr(wchar_t *dest, size_t dlen, const char *src);
    8586extern wchar_t *str_to_awstr(const char *src);
     87extern int utf16_to_str(char *dest, size_t size, const uint16_t *src);
     88extern int str_to_utf16(uint16_t *dest, size_t size, const char *src);
    8689
    8790extern char *str_chr(const char *str, wchar_t ch);
    8891extern char *str_rchr(const char *str, wchar_t ch);
     92
     93extern void str_rtrim(char *str, wchar_t ch);
     94extern void str_ltrim(char *str, wchar_t ch);
    8995
    9096extern bool wstr_linsert(wchar_t *str, wchar_t ch, size_t pos, size_t max_pos);
     
    94100extern char *str_ndup(const char *, size_t max_size);
    95101
     102extern int str_uint8_t(const char *, char **, unsigned int, bool, uint8_t *);
     103extern int str_uint16_t(const char *, char **, unsigned int, bool, uint16_t *);
     104extern int str_uint32_t(const char *, char **, unsigned int, bool, uint32_t *);
    96105extern int str_uint64(const char *, char **, unsigned int, bool, uint64_t *);
    97106extern int str_size_t(const char *, char **, unsigned int, bool, size_t *);
Note: See TracChangeset for help on using the changeset viewer.