Blame view

3rdparty/boost_1_81_0/boost/locale/util/string.hpp 566 Bytes
63e88f80   Hu Chunming   提交三方库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  //
  // Copyright (c) 2022 Alexander Grund
  //
  // Distributed under the Boost Software License, Version 1.0.
  // https://www.boost.org/LICENSE_1_0.txt
  
  #ifndef BOOST_LOCALE_UTIL_STRING_HPP
  #define BOOST_LOCALE_UTIL_STRING_HPP
  
  #include <boost/locale/config.hpp>
  
  namespace boost { namespace locale { namespace util {
      /// Return the end of a C-string, i.e. the pointer to the trailing NULL byte
      template<typename Char>
      Char* str_end(Char* str)
      {
          while(*str)
              ++str;
          return str;
      }
  }}} // namespace boost::locale::util
  
  #endif