10#if !defined(HPP_ALIB_STRINGS_UTIL_SPACES)
13#if !defined (HPP_ALIB_STRINGS_ASTRING)
20namespace alib {
namespace strings {
namespace util {
34 if ( spacesLength < minLength )
35 nSpaces.InsertChars(
' ', minLength - spacesLength );
42 if ( spacesLength < minLength )
44 wSpaces.InsertChars(
' ', minLength - spacesLength );
51 if( nSpaces.Length() < 128 )
56 integer size= qty < nSpaces.Length() ? qty : nSpaces.Length();
57 os.write( nSpaces.Buffer(), size );
62#if ALIB_CHARACTERS_NATIVE_WCHAR
65 if( wSpaces.Length() < 128 )
70 integer size= qty < wSpaces.Length() ? qty : wSpaces.Length();
71 os.write( wSpaces.Buffer(), size );
constexpr integer Length() const
static ALIB_API WString & GetW(integer minLength=128)
static ALIB_API void Write(std::basic_ostream< char > &os, integer qty)
static ALIB_API NString & GetN(integer minLength=128)
#define ALIB_WARNINGS_RESTORE
#define ALIB_WARNINGS_ALLOW_UNSAFE_BUFFER_USAGE
strings::TAString< nchar > NAString
Type alias in namespace alib.
strings::TAString< wchar > WAString
Type alias in namespace alib.
lang::integer integer
Type alias in namespace alib.