rename from BaseString to String

This commit is contained in:
2020-09-03 15:52:46 +08:00
parent 51f22f0ed3
commit 7927586bd1
13 changed files with 119 additions and 119 deletions

View File

@@ -2,7 +2,7 @@
#define HGL_IO_DATA_INPUT_STREAM_INCLUDE
#include<hgl/io/InputStream.h>
#include<hgl/type/BaseString.h>
#include<hgl/type/String.h>
#include<hgl/math/Vector.h>
namespace hgl
{

View File

@@ -2,7 +2,7 @@
#define HGL_IO_DATA_OUTPUT_STREAM_INCLUDE
#include<hgl/io/OutputStream.h>
#include<hgl/type/BaseString.h>
#include<hgl/type/String.h>
#include<hgl/CodePage.h>
#include<hgl/math/Vector.h>
namespace hgl
@@ -136,9 +136,9 @@ namespace hgl
template<typename T> bool WriteUTF16LEChars (const T *str,uint count); ///<按utf16-le格式写入字符阵列
template<typename T> bool WriteUTF16BEChars (const T *str,uint count); ///<按utf16-be格式写入字符阵列
template<typename T> bool WriteUTF8Chars (const BaseString<T> &str){return WriteUTF8Chars (str.c_str(),str.Length());}
template<typename T> bool WriteUTF16LEChars (const BaseString<T> &str){return WriteUTF16LEChars (str.c_str(),str.Length());}
template<typename T> bool WriteUTF16BEChars (const BaseString<T> &str){return WriteUTF16BEChars (str.c_str(),str.Length());}
template<typename T> bool WriteUTF8Chars (const String<T> &str){return WriteUTF8Chars (str.c_str(),str.Length());}
template<typename T> bool WriteUTF16LEChars (const String<T> &str){return WriteUTF16LEChars (str.c_str(),str.Length());}
template<typename T> bool WriteUTF16BEChars (const String<T> &str){return WriteUTF16BEChars (str.c_str(),str.Length());}
template<typename T> bool WriteUTF8StringWithLength (const u8char *str,const uint length);
template<typename T> bool WriteUTF8StringWithLength (const UTF16String &str);

View File

@@ -1,7 +1,7 @@
#ifndef HGL_IO_FILE_ACCESS_INCLUDE
#define HGL_IO_FILE_ACCESS_INCLUDE
#include<hgl/type/BaseString.h>
#include<hgl/type/String.h>
#include<hgl/io/SeekAccess.h>
#include<sys/stat.h>
namespace hgl

View File

@@ -59,7 +59,7 @@ namespace hgl
virtual bool WriteChars(const u16char *,int64)=0; ///<写入一个字符串
template<typename N>
bool WriteString(const BaseString<N> &str) ///<写入一个字符串
bool WriteString(const String<N> &str) ///<写入一个字符串
{
return WriteChars(str.c_str(),str.Length());
}
@@ -79,7 +79,7 @@ namespace hgl
}
template<typename N>
bool WriteLine(const BaseString<N> &str)
bool WriteLine(const String<N> &str)
{
return WriteLine(str.c_str(),str.Length());
}