mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Removed StringView ctor/set argument default values.
This commit is contained in:
@@ -73,6 +73,11 @@ namespace bx
|
||||
{
|
||||
}
|
||||
|
||||
inline StringView::StringView(const StringView& _rhs)
|
||||
{
|
||||
set(_rhs);
|
||||
}
|
||||
|
||||
inline StringView::StringView(const StringView& _rhs, int32_t _start, int32_t _len)
|
||||
{
|
||||
set(_rhs, _start, _len);
|
||||
@@ -127,6 +132,11 @@ namespace bx
|
||||
set(_ptr, int32_t(_term-_ptr) );
|
||||
}
|
||||
|
||||
inline void StringView::set(const StringView& _str)
|
||||
{
|
||||
set(_str, 0, INT32_MAX);
|
||||
}
|
||||
|
||||
inline void StringView::set(const StringView& _str, int32_t _start, int32_t _len)
|
||||
{
|
||||
const int32_t start = min(_start, _str.m_len);
|
||||
|
||||
@@ -61,7 +61,10 @@ namespace bx
|
||||
constexpr StringView(const StringLiteral& _str);
|
||||
|
||||
///
|
||||
StringView(const StringView& _rhs, int32_t _start = 0, int32_t _len = INT32_MAX);
|
||||
StringView(const StringView& _rhs);
|
||||
|
||||
///
|
||||
StringView(const StringView& _rhs, int32_t _start, int32_t _len);
|
||||
|
||||
///
|
||||
StringView& operator=(const char* _rhs);
|
||||
@@ -88,7 +91,10 @@ namespace bx
|
||||
void set(const char* _ptr, const char* _term);
|
||||
|
||||
///
|
||||
void set(const StringView& _str, int32_t _start = 0, int32_t _len = INT32_MAX);
|
||||
void set(const StringView& _str);
|
||||
|
||||
///
|
||||
void set(const StringView& _str, int32_t _start, int32_t _len);
|
||||
|
||||
///
|
||||
void clear();
|
||||
|
||||
Reference in New Issue
Block a user