upgrade function name.
This commit is contained in:
@@ -76,7 +76,7 @@ namespace hgl
|
|||||||
const T spear_char[] = { '/','\\' };
|
const T spear_char[] = { '/','\\' };
|
||||||
|
|
||||||
const int dot=filename.FindRightChar(split_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)
|
if(dot==-1)
|
||||||
{
|
{
|
||||||
@@ -151,7 +151,7 @@ namespace hgl
|
|||||||
|
|
||||||
const T spear_char[] = { '/','\\',':'};
|
const T spear_char[] = { '/','\\',':'};
|
||||||
|
|
||||||
const int pos=filename.FindRightChar(spear_char);
|
const int pos=filename.FindRightChars(spear_char);
|
||||||
|
|
||||||
if(pos==-1)
|
if(pos==-1)
|
||||||
return filename;
|
return filename;
|
||||||
|
@@ -974,7 +974,7 @@ namespace hgl
|
|||||||
* @param pos 起始查找位置
|
* @param pos 起始查找位置
|
||||||
* @param ch 要查找的字符,可以是多个,找到任意一个就算
|
* @param ch 要查找的字符,可以是多个,找到任意一个就算
|
||||||
*/
|
*/
|
||||||
int FindChar(uint pos,const String<T> &ch)const ///<返回当前字符串中指定字符(多个任选一)的索引(从左至右)
|
int FindChars(uint pos,const String<T> &ch)const ///<返回当前字符串中指定字符(多个任选一)的索引(从左至右)
|
||||||
{
|
{
|
||||||
if(!data.valid())
|
if(!data.valid())
|
||||||
return(-1);
|
return(-1);
|
||||||
@@ -987,7 +987,7 @@ namespace hgl
|
|||||||
return(-1);
|
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 ///<返回当前字符串中指定字符开始的索引(从右至左)
|
int FindRightChar(const T ch)const ///<返回当前字符串中指定字符开始的索引(从右至左)
|
||||||
{
|
{
|
||||||
@@ -1002,7 +1002,7 @@ namespace hgl
|
|||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int FindRightChar(const String<T> &ch)const ///<返回当前字符串中指定字符(多个任选一)开始的索引(从右至左)
|
int FindRightChars(const String<T> &ch)const ///<返回当前字符串中指定字符(多个任选一)开始的索引(从右至左)
|
||||||
{
|
{
|
||||||
if(!data.valid())
|
if(!data.valid())
|
||||||
return(-1);
|
return(-1);
|
||||||
|
Reference in New Issue
Block a user