Ignore:
Timestamp:
2018-07-05T21:41:21Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c71c171
Parents:
6d8a63a
git-author:
Dzejrou <dzejrou@…> (2018-04-20 00:11:54)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
Message:

cpp: revamped c header wrappers, now only include standard symbols, others are in std::hel, fixed some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/string.hpp

    r6d8a63a rde53138  
    4444namespace std
    4545{
    46 
    4746    /**
    4847     * 21.2, char_traits:
     
    8281        static int compare(const char_type* s1, const char_type* s2, size_t n)
    8382        {
    84             return std::str_lcmp(s1, s2, n);
     83            return hel::str_lcmp(s1, s2, n);
    8584        }
    8685
    8786        static size_t length(const char_type* s)
    8887        {
    89             return std::str_size(s);
     88            return hel::str_size(s);
    9089        }
    9190
     
    354353        {
    355354            // TODO: This function does not exits...
    356             //return std::wstr_lcmp(s1, s2, n);
     355            //return hel::wstr_lcmp(s1, s2, n);
    357356            return 0;
    358357        }
     
    360359        static size_t length(const char_type* s)
    361360        {
    362             return std::wstr_size(s);
     361            return hel::wstr_size(s);
    363362        }
    364363
     
    448447            /**
    449448             * 21.4.2, construct/copy/destroy:
     449             * TODO: tagged constructor that moves the char*
     450             *       and use that with asprintf in to_string
    450451             */
     452
    451453            basic_string() noexcept
    452454                : basic_string(allocator_type{})
Note: See TracChangeset for help on using the changeset viewer.