fixed a but in ReplaceExtName that replace extname at .

This commit is contained in:
hyzboy 2025-02-20 02:37:54 +08:00
parent 01dc69cdf0
commit b5ef4424d4
2 changed files with 2 additions and 4 deletions

View File

@ -350,7 +350,7 @@ namespace hgl
const int pos=old_name.FindRightChar(split_char);
if(pos!=-1)
return old_name.SubString(0,pos)+new_extname;
return old_name.SubString(0,pos+1)+new_extname;
else
return old_name+String<T>::charOf(split_char)+new_extname;
}

View File

@ -1,5 +1,4 @@
#ifndef HGL_ALGORITHM_MATH_FAST_TRIANGLE_FUNCTION_INCLUDE
#define HGL_ALGORITHM_MATH_FAST_TRIANGLE_FUNCTION_INCLUDE
#pragma once
#include<hgl/math/MathConst.h>
#include<math.h>
@ -73,4 +72,3 @@ namespace hgl
return x*(1.12*x - 0.12);
}
}//namespace hgl
#endif//HGL_ALGORITHM_MATH_FAST_TRIANGLE_FUNCTION_INCLUDE