My Project
|
A bsl::basic_string_view is a non-owning, encapsulation of a string, providing helper functions for working with strings. More...
#include <basic_string_view.hpp>
Public Types | |
using | value_type = CharT const |
alias for: CharT const | |
using | size_type = bsl::uintmax |
alias for: bsl::uintmax | |
using | difference_type = bsl::uintmax |
alias for: bsl::uintmax | |
using | reference_type = CharT const & |
alias for: CharT const & | |
using | const_reference_type = CharT const & |
alias for: CharT const & | |
using | pointer_type = CharT const * |
alias for: CharT const * | |
using | const_pointer_type = CharT const * |
alias for: CharT const const * | |
using | iterator_type = contiguous_iterator< CharT const > |
alias for: contiguous_iterator<CharT const> | |
using | const_iterator_type = contiguous_iterator< CharT const > |
alias for: contiguous_iterator<CharT const const> | |
using | reverse_iterator_type = reverse_iterator< iterator_type > |
alias for: reverse_iterator<iterator> | |
using | const_reverse_iterator_type = reverse_iterator< const_iterator_type > |
alias for: reverse_iterator<const_iterator> | |
Public Member Functions | |
constexpr | basic_string_view () noexcept=default |
Default constructor that creates a basic_string_view with data() == nullptr and size() == 0. All accessors will return a nullptr if used. Note that like other view types in the BSL, the bsl::basic_string_view is a POD type. This means that when declaring a global, default constructed bsl::basic_string_view, DO NOT include the {} for initialization. Instead, remove the {} and the global bsl::basic_string_view will be included in the BSS section of the executable, and initialized to 0 for you. All other instantiations of a bsl::basic_string_view (or any POD type), should be initialized using {} to ensure the POD is properly initialized. Using the above method for global initialization ensures that global constructors are not executed at runtime, which is required by AUTOSAR. More... | |
constexpr | basic_string_view (pointer_type const s) noexcept |
ptr constructor. This creates a bsl::basic_string_view given a pointer to a string. The number of characters in the string is determined using Traits<CharT>::length, which scans for '\0'. More... | |
constexpr basic_string_view & | operator= (pointer_type const s) &noexcept |
ptr assignment. This assigns a bsl::basic_string_view a pointer to a string. The number of characters in the string is determined using Traits<CharT>::length, which scans for '\0'. More... | |
constexpr pointer_type | at_if (size_type const index) noexcept |
Returns a pointer to the instance of T stored at index "index". If the index is out of bounds, or the view is invalid, this function returns a nullptr. More... | |
constexpr const_pointer_type | at_if (size_type const index) const noexcept |
Returns a pointer to the instance of T stored at index "index". If the index is out of bounds, or the view is invalid, this function returns a nullptr. More... | |
constexpr pointer_type | front_if () noexcept |
Returns a pointer to the instance of T stored at index "0". If the index is out of bounds, or the view is invalid, this function returns a nullptr. More... | |
constexpr const_pointer_type | front_if () const noexcept |
Returns a pointer to the instance of T stored at index "0". If the index is out of bounds, or the view is invalid, this function returns a nullptr. More... | |
constexpr pointer_type | back_if () noexcept |
Returns a pointer to the instance of T stored at index "size() - 1". If the index is out of bounds, or the view is invalid, this function returns a nullptr. More... | |
constexpr const_pointer_type | back_if () const noexcept |
Returns a pointer to the instance of T stored at index "size() - 1". If the index is out of bounds, or the view is invalid, this function returns a nullptr. More... | |
constexpr pointer_type | data () noexcept |
Returns a pointer to the string being viewed. If this is a default constructed view, or the view was constructed in error, this will return a nullptr. More... | |
constexpr const_pointer_type | data () const noexcept |
Returns a pointer to the string being viewed. If this is a default constructed view, or the view was constructed in error, this will return a nullptr. More... | |
constexpr iterator_type | begin () noexcept |
Returns an iterator to the first element of the view. More... | |
constexpr const_iterator_type | begin () const noexcept |
Returns an iterator to the first element of the view. More... | |
constexpr const_iterator_type | cbegin () const noexcept |
Returns an iterator to the first element of the view. More... | |
constexpr iterator_type | iter (size_type const i) noexcept |
Returns an iterator to the element "i" in the view. More... | |
constexpr const_iterator_type | iter (size_type const i) const noexcept |
Returns an iterator to the element "i" in the view. More... | |
constexpr const_iterator_type | citer (size_type const i) const noexcept |
Returns an iterator to the element "i" in the view. More... | |
constexpr iterator_type | end () noexcept |
Returns an iterator to one past the last element of the view. If you attempt to access this iterator, a nullptr will always be returned. More... | |
constexpr const_iterator_type | end () const noexcept |
Returns an iterator to one past the last element of the view. If you attempt to access this iterator, a nullptr will always be returned. More... | |
constexpr const_iterator_type | cend () const noexcept |
Returns an iterator to one past the last element of the view. If you attempt to access this iterator, a nullptr will always be returned. More... | |
constexpr reverse_iterator_type | rbegin () noexcept |
Returns a reverse iterator to one past the last element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation. More... | |
constexpr const_reverse_iterator_type | rbegin () const noexcept |
Returns a reverse iterator to one past the last element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation. More... | |
constexpr const_reverse_iterator_type | crbegin () const noexcept |
Returns a reverse iterator to one past the last element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation. More... | |
constexpr reverse_iterator_type | riter (size_type const i) noexcept |
Returns a reverse iterator element "i" in the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation. More... | |
constexpr const_reverse_iterator_type | riter (size_type const i) const noexcept |
Returns a reverse iterator element "i" in the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation. More... | |
constexpr const_reverse_iterator_type | criter (size_type const i) const noexcept |
Returns a reverse iterator element "i" in the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation. More... | |
constexpr reverse_iterator_type | rend () noexcept |
Returns a reverse iterator first element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation. More... | |
constexpr const_reverse_iterator_type | rend () const noexcept |
Returns a reverse iterator first element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation. More... | |
constexpr const_reverse_iterator_type | crend () const noexcept |
Returns a reverse iterator first element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation. More... | |
constexpr bool | empty () const noexcept |
Returns size() == 0. More... | |
constexpr size_type | size () const noexcept |
Returns the number of elements in the string being viewed. If this is a default constructed view, or the view was constructed in error, this will return 0. More... | |
constexpr size_type | length () const noexcept |
Returns the length of the string being viewed. This is the same as bsl::basic_string_view::size(). Note that the length refers to the total number of characters in the string and not the number of bytes in the string. For the total number of bytes, use bsl::basic_string_view::size_bytes(). More... | |
constexpr size_type | size_bytes () const noexcept |
Returns size() * sizeof(T) More... | |
constexpr basic_string_view & | remove_prefix (size_type const n) noexcept |
Moves the start of the view forward by n characters. If n >= size(), the bsl::basic_string_view is reset to a NULL string, with data() returning a nullptr, and size() returning 0. More... | |
constexpr basic_string_view & | remove_suffix (size_type const n) noexcept |
Moves the end of the view back by n characters. If n >= size(), the bsl::basic_string_view is reset to a NULL string, with data() returning a nullptr, and size() returning 0. More... | |
constexpr basic_string_view | substr (size_type const pos=0U, size_type const count=npos) const noexcept |
Returns a new bsl::basic_string_view that is a substring view of the original. The substring starts at "pos" and ends at "pos" + "count". Note that this does not copy the string, it simply changes the internal pointer and size of the same string that is currently being viewed (meaning the lifetime of the new substring cannot outlive the lifetime of the string being viewed by the original bsl::basic_string_view). If the provided "pos" or "count" are invalid, this function returns an empty string view. More... | |
constexpr bsl::int32 | compare (basic_string_view const &str) const noexcept |
Compares two strings. More... | |
constexpr bsl::int32 | compare (size_type const pos, size_type const count, basic_string_view const &str) const noexcept |
Same as substr(pos, count).compare(v) More... | |
constexpr bsl::int32 | compare (size_type pos1, size_type count1, basic_string_view const &str, size_type pos2, size_type count2) const noexcept |
Same as substr(pos1, count1).compare(v.substr(pos2, count2)) More... | |
constexpr bsl::int32 | compare (pointer_type const str) const noexcept |
Same as compare(basic_string_view{s}) More... | |
constexpr bsl::int32 | compare (size_type pos, size_type count, pointer_type const str) const noexcept |
Same as substr(pos, count).compare(basic_string_view{s}) More... | |
constexpr bsl::int32 | compare (size_type pos, size_type count1, pointer_type const str, size_type count2) const noexcept |
Same as substr(pos, count1).compare(basic_string_view{s, count2}) More... | |
constexpr bool | starts_with (basic_string_view const &str) const noexcept |
Checks if the string begins with the given prefix. More... | |
constexpr bool | starts_with (value_type const c) const noexcept |
Checks if the string begins with the given prefix. More... | |
constexpr bool | starts_with (pointer_type const str) const noexcept |
Checks if the string begins with the given prefix. More... | |
constexpr bool | ends_with (basic_string_view const &str) const noexcept |
Checks if the string ends with the given suffix. More... | |
constexpr bool | ends_with (value_type const c) const noexcept |
Checks if the string ends with the given suffix. More... | |
constexpr bool | ends_with (pointer_type const str) const noexcept |
Checks if the string ends with the given suffix. More... | |
Static Public Member Functions | |
static constexpr size_type | max_size () noexcept |
Returns the max number of elements the BSL supports. More... | |
Related Functions | |
(Note that these are not member functions.) | |
using | string_view = basic_string_view< char_type > |
provides the default string_view prototype More... | |
template<typename CharT , typename Traits > | |
constexpr bool | operator== (bsl::basic_string_view< CharT, Traits > const &lhs, bsl::basic_string_view< CharT, Traits > const &rhs) noexcept |
Returns true if two strings have the same length (which is different from compare() which uses the minimum size between the two provided strings), and contain the same characters. Returns false otherwise. More... | |
template<typename CharT , typename Traits > | |
constexpr bool | operator== (bsl::basic_string_view< CharT, Traits > const &lhs, CharT const *const rhs) noexcept |
Returns true if two strings have the same length (which is different from compare() which uses the minimum size between the two provided strings), and contain the same characters. Returns false otherwise. More... | |
template<typename CharT , typename Traits > | |
constexpr bool | operator== (CharT const *const lhs, bsl::basic_string_view< CharT, Traits > const &rhs) noexcept |
Returns true if two strings have the same length (which is different from compare() which uses the minimum size between the two provided strings), and contain the same characters. Returns false otherwise. More... | |
template<typename CharT , typename Traits > | |
constexpr bool | operator!= (bsl::basic_string_view< CharT, Traits > const &lhs, bsl::basic_string_view< CharT, Traits > const &rhs) noexcept |
Returns true if two strings are not the same length (which is different from compare() which uses the minimum size between the two provided strings), or contain different characters. Returns false otherwise. More... | |
template<typename CharT , typename Traits > | |
constexpr bool | operator!= (bsl::basic_string_view< CharT, Traits > const &lhs, CharT const *const rhs) noexcept |
Returns true if two strings are not the same length (which is different from compare() which uses the minimum size between the two provided strings), or contain different characters. Returns false otherwise. More... | |
template<typename CharT , typename Traits > | |
constexpr bool | operator!= (CharT const *const lhs, bsl::basic_string_view< CharT, Traits > const &rhs) noexcept |
Returns true if two strings are not the same length (which is different from compare() which uses the minimum size between the two provided strings), or contain different characters. Returns false otherwise. More... | |
template<typename OUT , typename CharT > | |
constexpr void | fmt_impl (OUT &&o, fmt_options const &ops, basic_string_view< CharT > const &str) noexcept |
This function is responsible for implementing bsl::fmt for string_view types. For strings, the only fmt options that are available are alignment, fill and width, all of which are handled by the fmt_impl_align_xxx functions. More... | |
template<typename T , typename CharT > | |
constexpr out< T > | operator<< (out< T > const o, basic_string_view< CharT > const &str) noexcept |
Outputs the provided string_view to the provided output type. More... | |
A bsl::basic_string_view is a non-owning, encapsulation of a string, providing helper functions for working with strings.
CharT | the type of characters in the string |
Traits | the traits class used to work with the string |
|
defaultnoexcept |
Default constructor that creates a basic_string_view with data() == nullptr and size() == 0. All accessors will return a nullptr if used. Note that like other view types in the BSL, the bsl::basic_string_view is a POD type. This means that when declaring a global, default constructed bsl::basic_string_view, DO NOT include the {} for initialization. Instead, remove the {} and the global bsl::basic_string_view will be included in the BSS section of the executable, and initialized to 0 for you. All other instantiations of a bsl::basic_string_view (or any POD type), should be initialized using {} to ensure the POD is properly initialized. Using the above method for global initialization ensures that global constructors are not executed at runtime, which is required by AUTOSAR.
|
inlinenoexcept |
ptr constructor. This creates a bsl::basic_string_view given a pointer to a string. The number of characters in the string is determined using Traits<CharT>::length, which scans for '\0'.
SUPPRESSION: PRQA 2180 - false positive
s | a pointer to the string |
|
inlinenoexcept |
ptr assignment. This assigns a bsl::basic_string_view a pointer to a string. The number of characters in the string is determined using Traits<CharT>::length, which scans for '\0'.
s | a pointer to the string |
|
inlinenoexcept |
Returns a pointer to the instance of T stored at index "index". If the index is out of bounds, or the view is invalid, this function returns a nullptr.
SUPPRESSION: PRQA 4024 - false positive
index | the index of the instance to return |
|
inlinenoexcept |
Returns a pointer to the instance of T stored at index "index". If the index is out of bounds, or the view is invalid, this function returns a nullptr.
index | the index of the instance to return |
|
inlinenoexcept |
Returns a pointer to the instance of T stored at index "0". If the index is out of bounds, or the view is invalid, this function returns a nullptr.
|
inlinenoexcept |
Returns a pointer to the instance of T stored at index "0". If the index is out of bounds, or the view is invalid, this function returns a nullptr.
|
inlinenoexcept |
Returns a pointer to the instance of T stored at index "size() - 1". If the index is out of bounds, or the view is invalid, this function returns a nullptr.
|
inlinenoexcept |
Returns a pointer to the instance of T stored at index "size() - 1". If the index is out of bounds, or the view is invalid, this function returns a nullptr.
|
inlinenoexcept |
Returns a pointer to the string being viewed. If this is a default constructed view, or the view was constructed in error, this will return a nullptr.
|
inlinenoexcept |
Returns a pointer to the string being viewed. If this is a default constructed view, or the view was constructed in error, this will return a nullptr.
|
inlinenoexcept |
Returns an iterator to the first element of the view.
|
inlinenoexcept |
Returns an iterator to the first element of the view.
|
inlinenoexcept |
Returns an iterator to the first element of the view.
|
inlinenoexcept |
Returns an iterator to the element "i" in the view.
i | the element in the string to return an iterator for. |
|
inlinenoexcept |
Returns an iterator to the element "i" in the view.
i | the element in the string to return an iterator for. |
|
inlinenoexcept |
Returns an iterator to the element "i" in the view.
i | the element in the string to return an iterator for. |
|
inlinenoexcept |
Returns an iterator to one past the last element of the view. If you attempt to access this iterator, a nullptr will always be returned.
|
inlinenoexcept |
Returns an iterator to one past the last element of the view. If you attempt to access this iterator, a nullptr will always be returned.
|
inlinenoexcept |
Returns an iterator to one past the last element of the view. If you attempt to access this iterator, a nullptr will always be returned.
|
inlinenoexcept |
Returns a reverse iterator to one past the last element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation.
|
inlinenoexcept |
Returns a reverse iterator to one past the last element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation.
|
inlinenoexcept |
Returns a reverse iterator to one past the last element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation.
|
inlinenoexcept |
Returns a reverse iterator element "i" in the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation.
i | the element in the string to return an iterator for. |
|
inlinenoexcept |
Returns a reverse iterator element "i" in the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation.
i | the element in the string to return an iterator for. |
|
inlinenoexcept |
Returns a reverse iterator element "i" in the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation.
i | the element in the string to return an iterator for. |
|
inlinenoexcept |
Returns a reverse iterator first element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation.
|
inlinenoexcept |
Returns a reverse iterator first element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation.
|
inlinenoexcept |
Returns a reverse iterator first element of the view. When accessing the iterator, the iterator will always return the element T[internal index - 1], providing access to the range [size() - 1, 0) while internally storing the range [size(), 1) with element 0 representing the end(). For more information, see the bsl::reverse_iterator documentation.
|
inlinenoexcept |
Returns size() == 0.
|
inlinenoexcept |
Returns the number of elements in the string being viewed. If this is a default constructed view, or the view was constructed in error, this will return 0.
|
inlinenoexcept |
Returns the length of the string being viewed. This is the same as bsl::basic_string_view::size(). Note that the length refers to the total number of characters in the string and not the number of bytes in the string. For the total number of bytes, use bsl::basic_string_view::size_bytes().
|
inlinestaticnoexcept |
Returns the max number of elements the BSL supports.
|
inlinenoexcept |
Returns size() * sizeof(T)
|
inlinenoexcept |
Moves the start of the view forward by n characters. If n >= size(), the bsl::basic_string_view is reset to a NULL string, with data() returning a nullptr, and size() returning 0.
n | the number of character to remove from the start of the string. |
|
inlinenoexcept |
Moves the end of the view back by n characters. If n >= size(), the bsl::basic_string_view is reset to a NULL string, with data() returning a nullptr, and size() returning 0.
n | the number of character to remove from the end of the string. |
|
inlinenoexcept |
Returns a new bsl::basic_string_view that is a substring view of the original. The substring starts at "pos" and ends at "pos" + "count". Note that this does not copy the string, it simply changes the internal pointer and size of the same string that is currently being viewed (meaning the lifetime of the new substring cannot outlive the lifetime of the string being viewed by the original bsl::basic_string_view). If the provided "pos" or "count" are invalid, this function returns an empty string view.
pos | the starting position of the new substring. |
count | the length of the new bsl::basic_string_view |
|
inlinenoexcept |
Compares two strings.
str | the bsl::basic_string_view to compare with |
|
inlinenoexcept |
Same as substr(pos, count).compare(v)
pos | the starting position of "this" to compare from |
count | the number of characters of "this" to compare |
str | the bsl::basic_string_view to compare with |
|
inlinenoexcept |
Same as substr(pos1, count1).compare(v.substr(pos2, count2))
pos1 | the starting position of "this" to compare from |
count1 | the number of characters of "this" to compare |
str | the bsl::basic_string_view to compare with |
pos2 | the starting position of "v" to compare from |
count2 | the number of characters of "v" to compare |
|
inlinenoexcept |
Same as compare(basic_string_view{s})
str | a pointer to a string to compare with "this" |
|
inlinenoexcept |
Same as substr(pos, count).compare(basic_string_view{s})
pos | the starting position of "this" to compare from |
count | the number of characters of "this" to compare |
str | a pointer to a string to compare with "this" |
|
inlinenoexcept |
Same as substr(pos, count1).compare(basic_string_view{s, count2})
pos | the starting position of "this" to compare from |
count1 | the number of characters of "this" to compare |
str | a pointer to a string to compare with "this" |
count2 | the number of characters of "s" to compare |
|
inlinenoexcept |
Checks if the string begins with the given prefix.
str | the bsl::basic_string_view to compare with |
|
inlinenoexcept |
Checks if the string begins with the given prefix.
c | the value_type to compare with |
|
inlinenoexcept |
Checks if the string begins with the given prefix.
str | the string to compare with |
|
inlinenoexcept |
Checks if the string ends with the given suffix.
str | the bsl::basic_string_view to compare with |
|
inlinenoexcept |
Checks if the string ends with the given suffix.
c | the value_type to compare with |
|
inlinenoexcept |
Checks if the string ends with the given suffix.
str | the string to compare with |
|
related |
provides the default string_view prototype
|
related |
Returns true if two strings have the same length (which is different from compare() which uses the minimum size between the two provided strings), and contain the same characters. Returns false otherwise.
CharT | the type of characters in the string |
Traits | the traits class used to work with the string |
lhs | the left hand side of the operation |
rhs | the right hand side of the operation |
|
related |
Returns true if two strings have the same length (which is different from compare() which uses the minimum size between the two provided strings), and contain the same characters. Returns false otherwise.
CharT | the type of characters in the string |
Traits | the traits class used to work with the string |
lhs | the left hand side of the operation |
rhs | the right hand side of the operation |
|
related |
Returns true if two strings have the same length (which is different from compare() which uses the minimum size between the two provided strings), and contain the same characters. Returns false otherwise.
CharT | the type of characters in the string |
Traits | the traits class used to work with the string |
lhs | the left hand side of the operation |
rhs | the right hand side of the operation |
|
related |
Returns true if two strings are not the same length (which is different from compare() which uses the minimum size between the two provided strings), or contain different characters. Returns false otherwise.
CharT | the type of characters in the string |
Traits | the traits class used to work with the string |
lhs | the left hand side of the operation |
rhs | the right hand side of the operation |
|
related |
Returns true if two strings are not the same length (which is different from compare() which uses the minimum size between the two provided strings), or contain different characters. Returns false otherwise.
CharT | the type of characters in the string |
Traits | the traits class used to work with the string |
lhs | the left hand side of the operation |
rhs | the right hand side of the operation |
|
related |
Returns true if two strings are not the same length (which is different from compare() which uses the minimum size between the two provided strings), or contain different characters. Returns false otherwise.
CharT | the type of characters in the string |
Traits | the traits class used to work with the string |
lhs | the left hand side of the operation |
rhs | the right hand side of the operation |
|
related |
This function is responsible for implementing bsl::fmt for string_view types. For strings, the only fmt options that are available are alignment, fill and width, all of which are handled by the fmt_impl_align_xxx functions.
OUT | the type of out (i.e., debug, alert, etc) |
o | the instance of out<T> to output to |
ops | ops the fmt options used to format the output |
str | the string_view being outputted |
|
related |
Outputs the provided string_view to the provided output type.
T | the type of outputter provided |
o | the instance of the outputter used to output the value. |
str | the string_view to output |