@@ -62,8 +62,8 @@ namespace sndx::utility {
6262 }
6363
6464 template <class CharT = char > [[nodiscard]]
65- constexpr sv<CharT > splitFirst (const Str<CharT>& str, CharT delim, sv<CharT> strips = defaultStrip<char >) {
66- return stripFirst (sv<CharT>(str), delim, strips);
65+ constexpr std::pair< sv<char >, sv< char > > splitFirst (const Str<CharT>& str, CharT delim, sv<CharT> strips = defaultStrip<char >) {
66+ return splitFirst (sv<CharT>(str), delim, strips);
6767 }
6868
6969 constexpr std::pair<sv<char >, sv<char >> splitFirst (std::nullptr_t , char , sv<char > = defaultStrip<char >) = delete;
@@ -75,7 +75,7 @@ namespace sndx::utility {
7575
7676
7777 template <class Chr = char > [[nodiscard]]
78- std::vector<sv<Chr>> splitStrip (sv<Chr> str, Chr delim, sv<Chr> strips = sv<Chr>{ " \t\r " }) {
78+ inline std::vector<sv<Chr>> splitStrip (sv<Chr> str, Chr delim, sv<Chr> strips = sv<Chr>{ " \t\r " }) {
7979 std::vector<sv<Chr>> out{};
8080 str = strip (str, strips);
8181 if (str == " " ) return out;
@@ -99,20 +99,20 @@ namespace sndx::utility {
9999 }
100100
101101 template <class Chr = char > [[nodiscard]]
102- auto splitStrip (Str<Chr> str, Chr delim, sv<Chr> strips = sv<Chr>{ " \t\r " }) {
102+ inline auto splitStrip (Str<Chr> str, Chr delim, sv<Chr> strips = sv<Chr>{ " \t\r " }) {
103103 return splitStrip (sv<Chr>{str}, delim, strips);
104104 }
105105
106106 inline std::vector<sv<char >> splitStrip (std::nullptr_t , char , sv<char > = defaultStrip<char >) = delete;
107107
108108 [[nodiscard]]
109- auto splitStrip (const char * str, char delim, sv<char > strips = defaultStrip<char >) noexcept {
109+ inline auto splitStrip (const char * str, char delim, sv<char > strips = defaultStrip<char >) noexcept {
110110 return splitStrip (sv<char >{str}, delim, strips);
111111 }
112112
113113
114114 template <typename CharT = char > [[nodiscard]]
115- Str<CharT> parseEscaped (sv<CharT> str) {
115+ inline Str<CharT> parseEscaped (sv<CharT> str) {
116116 Str<CharT> out{};
117117 out.reserve (str.size ());
118118
@@ -167,11 +167,11 @@ namespace sndx::utility {
167167 }
168168
169169 template <typename CharT = char > [[nodiscard]]
170- Str<CharT> parseEscaped (const Str<CharT>& str) {
170+ inline Str<CharT> parseEscaped (const Str<CharT>& str) {
171171 return parseEscaped (sv<CharT>{str});
172172 }
173173
174- std::string parseEscaped (std::nullptr_t ) = delete;
174+ inline std::string parseEscaped (std::nullptr_t ) = delete;
175175
176176 [[nodiscard]]
177177 inline auto parseEscaped (const char * str) noexcept {
0 commit comments