5#include "../SqlColumnTypeDefinitions.hpp"
7#include "UnicodeConverter.hpp"
18template <
typename CharT>
19struct SqlBasicStringOperations<std::basic_string<CharT>>
21 using CharType = CharT;
22 using StringType = std::basic_string<CharT>;
24 static constexpr auto ColumnType = SqlColumnTypeDefinitions::Varchar { 255 };
26 static LIGHTWEIGHT_FORCE_INLINE CharType
const* Data(StringType
const* str)
noexcept
31 static LIGHTWEIGHT_FORCE_INLINE CharType* Data(StringType* str)
noexcept
36 static LIGHTWEIGHT_FORCE_INLINE SQLULEN Size(StringType
const* str)
noexcept
41 static LIGHTWEIGHT_FORCE_INLINE
void Clear(StringType* str)
noexcept
46 static LIGHTWEIGHT_FORCE_INLINE
void Reserve(StringType* str,
size_t capacity)
noexcept
51 str->reserve(capacity);
52 str->resize(str->capacity());
55 static LIGHTWEIGHT_FORCE_INLINE
void Resize(StringType* str, SQLLEN indicator)
noexcept
58 str->resize(indicator);