Stroika Library 3.0d21
 
Loading...
Searching...
No Matches
Stroika::Foundation::Characters::StringBuilder_Options< BUF_CHAR_T, INLINE_BUF_SIZE > Struct Template Reference

rarely used directly - defaults generally fine More...

#include <StringBuilder.h>

Static Public Attributes

static constexpr size_t kInlineBufferSize = INLINE_BUF_SIZE
 

Detailed Description

template<IUNICODECanAlwaysConvertTo BUF_CHAR_T = char8_t, size_t INLINE_BUF_SIZE = 128>
struct Stroika::Foundation::Characters::StringBuilder_Options< BUF_CHAR_T, INLINE_BUF_SIZE >

rarely used directly - defaults generally fine

BUF_CHAR_T of char32_t probably does better if definitely using a lot of wide unicode characters. BUF_CHAR_T of char8_t probably best for mostly ASCII text. Note - GetAt/SetAt very slow unless using char32_t.

Maybe easy to support all at once.

Definition at line 48 of file StringBuilder.h.

Member Data Documentation

◆ kInlineBufferSize

template<IUNICODECanAlwaysConvertTo BUF_CHAR_T = char8_t, size_t INLINE_BUF_SIZE = 128>
constexpr size_t Stroika::Foundation::Characters::StringBuilder_Options< BUF_CHAR_T, INLINE_BUF_SIZE >::kInlineBufferSize = INLINE_BUF_SIZE
staticconstexpr

Note that kInlineBufferSize is measured in 'buffer elements' - not (necessarily the same as) bytes or Characters.

Definition at line 52 of file StringBuilder.h.


The documentation for this struct was generated from the following file: