upgrade function name.

This commit is contained in:
2020-09-18 19:46:56 +08:00
parent 7ae1cf07ff
commit 2aadf9005c
2 changed files with 5 additions and 5 deletions

View File

@@ -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;

View File

@@ -974,7 +974,7 @@ namespace hgl
* @param pos 起始查找位置
* @param ch 要查找的字符,可以是多个,找到任意一个就算
*/
int FindChar(uint pos,const String<T> &ch)const ///<返回当前字符串中指定字符(多个任选一)的索引(从左至右)
int FindChars(uint pos,const String<T> &ch)const ///<返回当前字符串中指定字符(多个任选一)的索引(从左至右)
{
if(!data.valid())
return(-1);
@@ -987,7 +987,7 @@ namespace hgl
return(-1);
}
int FindChar(const String<T> &ch)const{return FindChar(0,ch);} ///<返回当前字符串中指定字符(多个任选一)的索引(从左至右)
int FindChars(const String<T> &ch)const{return FindChars(0,ch);} ///<返回当前字符串中指定字符(多个任选一)的索引(从左至右)
int FindRightChar(const T ch)const ///<返回当前字符串中指定字符开始的索引(从右至左)
{
@@ -1002,7 +1002,7 @@ namespace hgl
return(-1);
}
int FindRightChar(const String<T> &ch)const ///<返回当前字符串中指定字符(多个任选一)开始的索引(从右至左)
int FindRightChars(const String<T> &ch)const ///<返回当前字符串中指定字符(多个任选一)开始的索引(从右至左)
{
if(!data.valid())
return(-1);