55#ifndef LASS_GUARDIAN_OF_INCLUSION_STDE_EXTENDED_STRING_H
56#define LASS_GUARDIAN_OF_INCLUSION_STDE_EXTENDED_STRING_H
60#if LASS_PLATFORM_TYPE == LASS_PLATFORM_TYPE_BSD
74template <
typename Char,
typename Traits,
typename Alloc>
75std::basic_string<Char, Traits, Alloc>
76tolower(
const std::basic_string<Char, Traits, Alloc>& input,
77 const std::locale& locale = std::locale());
79template <
typename Char,
typename Traits,
typename Alloc>
80std::basic_string<Char, Traits, Alloc>
81toupper(
const std::basic_string<Char, Traits, Alloc>& input,
82 const std::locale& locale = std::locale());
84template <
typename Char,
typename Traits,
typename Alloc>
85std::basic_string<Char, Traits, Alloc>
86replace_all(
const std::basic_string<Char, Traits, Alloc>& input,
87 const std::basic_string<Char, Traits, Alloc>& to_be_replaced,
88 const std::basic_string<Char, Traits, Alloc>& replacement);
89template <
typename Char,
typename Traits,
typename Alloc>
90std::basic_string<Char, Traits, Alloc>
91replace_all(
const std::basic_string<Char, Traits, Alloc>& input,
92 const Char* to_be_replaced,
93 const Char* replacement);
95template <
typename Char,
typename Traits,
typename Alloc>
96bool begins_with(
const std::basic_string<Char, Traits, Alloc>& input,
97 const std::basic_string<Char, Traits, Alloc>& prefix);
98template <
typename Char,
typename Traits,
typename Alloc>
99bool begins_with(
const std::basic_string<Char, Traits, Alloc>& input,
101template <
typename Char,
typename Traits,
typename Alloc>
102bool begins_with(
const std::basic_string<Char, Traits, Alloc>& input,
105template <
typename Char,
typename Traits,
typename Alloc>
106bool ends_with(
const std::basic_string<Char, Traits, Alloc>& input,
107 const std::basic_string<Char, Traits, Alloc>& suffix);
108template <
typename Char,
typename Traits,
typename Alloc>
109bool ends_with(
const std::basic_string<Char, Traits, Alloc>& input,
111template <
typename Char,
typename Traits,
typename Alloc>
112bool ends_with(
const std::basic_string<Char, Traits, Alloc>& input,
115template <
typename Char,
typename Traits,
typename Alloc>
116std::vector< std::basic_string<Char, Traits, Alloc> >
117split(
const std::basic_string<Char, Traits, Alloc>& to_be_split);
119template <
typename Char,
typename Traits,
typename Alloc>
120std::vector< std::basic_string<Char, Traits, Alloc> >
121split(
const std::basic_string<Char, Traits, Alloc>& to_be_split,
122 const std::basic_string<Char, Traits, Alloc>& seperator,
123 size_t max_split = 0);
124template <
typename Char,
typename Traits,
typename Alloc>
125std::vector< std::basic_string<Char, Traits, Alloc> >
126split(
const std::basic_string<Char, Traits, Alloc>& to_be_split,
127 const Char* seperator,
128 size_t max_split = 0);
130template <
typename Char,
typename Traits,
typename Alloc,
typename InputIterator>
131std::basic_string<Char, Traits, Alloc>
132join(
const std::basic_string<Char, Traits, Alloc>& joiner, InputIterator first, InputIterator last);
134template <
typename Char,
typename Traits,
typename Alloc,
typename InputRange>
135std::basic_string<Char, Traits, Alloc>
136join_r(
const std::basic_string<Char, Traits, Alloc>& joiner,
const InputRange& range);
138template <
typename Char,
typename Traits,
typename Alloc>
139std::basic_string<Char, Traits, Alloc>
140lstrip(
const std::basic_string<Char, Traits, Alloc>& to_be_stripped,
141 const std::basic_string<Char, Traits, Alloc>& to_be_removed);
143template <
typename Char,
typename Traits,
typename Alloc>
144std::basic_string<Char, Traits, Alloc>
145lstrip(
const std::basic_string<Char, Traits, Alloc>& to_be_stripped);
147template <
typename Char,
typename Traits,
typename Alloc>
148std::basic_string<Char, Traits, Alloc>
149rstrip(
const std::basic_string<Char, Traits, Alloc>& to_be_stripped,
150 const std::basic_string<Char, Traits, Alloc>& to_be_removed);
152template <
typename Char,
typename Traits,
typename Alloc>
153std::basic_string<Char, Traits, Alloc>
154rstrip(
const std::basic_string<Char, Traits, Alloc>& to_be_stripped);
156template <
typename Char,
typename Traits,
typename Alloc>
157std::basic_string<Char, Traits, Alloc>
158strip(
const std::basic_string<Char, Traits, Alloc>& to_be_stripped,
159 const std::basic_string<Char, Traits, Alloc>& to_be_removed);
161template <
typename Char,
typename Traits,
typename Alloc>
162std::basic_string<Char, Traits, Alloc>
163strip(
const std::basic_string<Char, Traits, Alloc>& to_be_stripped);
std::basic_string< Char, Traits, Alloc > lstrip(const std::basic_string< Char, Traits, Alloc > &to_be_stripped, const std::basic_string< Char, Traits, Alloc > &to_be_removed)
Return a copy of the string to_be_stripped with leading characters removed.
bool begins_with(const std::basic_string< Char, Traits, Alloc > &input, const std::basic_string< Char, Traits, Alloc > &prefix)
returns true if input begins with the input prefix
std::basic_string< Char, Traits, Alloc > rstrip(const std::basic_string< Char, Traits, Alloc > &to_be_stripped, const std::basic_string< Char, Traits, Alloc > &to_be_removed)
Return a copy of the string to_be_stripped with trailing characters removed.
std::basic_string< Char, Traits, Alloc > replace_all(const std::basic_string< Char, Traits, Alloc > &input, const std::basic_string< Char, Traits, Alloc > &to_be_replaced, const std::basic_string< Char, Traits, Alloc > &replacement)
replace all instances of to_be_replaced in input by replacement.
std::basic_string< Char, Traits, Alloc > tolower(const std::basic_string< Char, Traits, Alloc > &input, const std::locale &locale=std::locale())
convert std::basic_string to lower case by using user locale
std::vector< std::basic_string< Char, Traits, Alloc > > split(const std::basic_string< Char, Traits, Alloc > &to_be_split)
Reflects the Python function split without seperator argument.
std::basic_string< Char, Traits, Alloc > toupper(const std::basic_string< Char, Traits, Alloc > &input, const std::locale &locale=std::locale())
convert std::basic_string to upper case by using user locale
bool ends_with(const std::basic_string< Char, Traits, Alloc > &input, const std::basic_string< Char, Traits, Alloc > &suffix)
returns true if input ends with the input suffix
std::basic_string< Char, Traits, Alloc > strip(const std::basic_string< Char, Traits, Alloc > &to_be_stripped, const std::basic_string< Char, Traits, Alloc > &to_be_removed)
Return a copy of the string to_be_stripped with both leading and trailing characters removed.
lass extensions to the standard library
Library for Assembled Shared Sources.