From 2aadf9005ca099d8c72f745c547d610022a79d0b Mon Sep 17 00:00:00 2001 From: hyzboy Date: Fri, 18 Sep 2020 19:46:56 +0800 Subject: [PATCH] upgrade function name. --- inc/hgl/filesystem/FileSystem.h | 4 ++-- inc/hgl/type/String.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/hgl/filesystem/FileSystem.h b/inc/hgl/filesystem/FileSystem.h index bfd3ad0..9620f54 100644 --- a/inc/hgl/filesystem/FileSystem.h +++ b/inc/hgl/filesystem/FileSystem.h @@ -76,7 +76,7 @@ namespace hgl const T spear_char[] = { '/','\\' }; const int dot=filename.FindRightChar(split_char); - const int pos=filename.FindRightChar(spear_char); + const int pos=filename.FindRightChars(spear_char); if(dot==-1) { @@ -151,7 +151,7 @@ namespace hgl const T spear_char[] = { '/','\\',':'}; - const int pos=filename.FindRightChar(spear_char); + const int pos=filename.FindRightChars(spear_char); if(pos==-1) return filename; diff --git a/inc/hgl/type/String.h b/inc/hgl/type/String.h index 347b8f5..e5ea75e 100644 --- a/inc/hgl/type/String.h +++ b/inc/hgl/type/String.h @@ -974,7 +974,7 @@ namespace hgl * @param pos 起始查找位置 * @param ch 要查找的字符,可以是多个,找到任意一个就算 */ - int FindChar(uint pos,const String &ch)const ///<返回当前字符串中指定字符(多个任选一)的索引(从左至右) + int FindChars(uint pos,const String &ch)const ///<返回当前字符串中指定字符(多个任选一)的索引(从左至右) { if(!data.valid()) return(-1); @@ -987,7 +987,7 @@ namespace hgl return(-1); } - int FindChar(const String &ch)const{return FindChar(0,ch);} ///<返回当前字符串中指定字符(多个任选一)的索引(从左至右) + int FindChars(const String &ch)const{return FindChars(0,ch);} ///<返回当前字符串中指定字符(多个任选一)的索引(从左至右) int FindRightChar(const T ch)const ///<返回当前字符串中指定字符开始的索引(从右至左) { @@ -1002,7 +1002,7 @@ namespace hgl return(-1); } - int FindRightChar(const String &ch)const ///<返回当前字符串中指定字符(多个任选一)开始的索引(从右至左) + int FindRightChars(const String &ch)const ///<返回当前字符串中指定字符(多个任选一)开始的索引(从右至左) { if(!data.valid()) return(-1);