diff options
Diffstat (limited to 'src/core/xbfuncs.cpp')
-rwxr-xr-x | src/core/xbfuncs.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/xbfuncs.cpp b/src/core/xbfuncs.cpp index a038611..f127211 100755 --- a/src/core/xbfuncs.cpp +++ b/src/core/xbfuncs.cpp @@ -2,7 +2,7 @@ XBase64 Software Library -Copyright (c) 1997,2003,2014,2017,2022 Gary A Kunkel +Copyright (c) 1997,2003,2014,2017,2022,2023 Gary A Kunkel The xb64 software library is covered under the terms of the GPL Version 3, 2007 license. @@ -611,12 +611,13 @@ xbInt16 xbXBase::RTRIM( const xbString &sIn, xbString &sOut ){ /*! Expression function SPACE(). \param lCnt Input - Number of spaces. - \param sOut Output - Output String. + \param sOut Output - Output string consisting of specified number of spaces. \returns XB_NO_ERROR. */ xbInt16 xbXBase::SPACE( xbInt32 lCnt, xbString &sOut ){ sOut = ""; - sOut.PadLeft( ' ', (xbUInt32) lCnt ); + for( xbInt32 i = 0; i < lCnt; i++ ) + sOut += ' '; return XB_NO_ERROR; } |