moved to "io" folder from "type"

This commit is contained in:
2023-07-15 00:03:48 +08:00
parent 404acf8f58
commit c722d40049
5 changed files with 3 additions and 3 deletions

14
inc/hgl/io/LoadString.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef HGL_LOAD_STRING_INCLUDE
#define HGL_LOAD_STRING_INCLUDE
#include<hgl/type/String.h>
#include<hgl/CodePage.h>
namespace hgl
{
int LoadStringFromText(UTF8String &full_text,const void *source_data,const int size,const CharSet &cs=UTF8CharSet); ///<加载一个原始文本块到UTF8String
int LoadStringFromText(UTF16String &full_text,const void *source_data,const int size,const CharSet &cs=UTF8CharSet); ///<加载一个原始文本块到UTF16String
int LoadStringFromTextFile(UTF8String &str,const OSString &filename,const CharSet &cs=UTF8CharSet); ///<加载一个原始文本文件到UTF8String
int LoadStringFromTextFile(UTF16String &str,const OSString &filename,const CharSet &cs=UTF8CharSet); ///<加载一个原始文本文件到UTF16String
}//namespace hgl
#endif//HGL_LOAD_STRING_INCLUDE