mirror of
https://github.com/Ragora/T2-BoL.git
synced 2026-03-02 03:53:40 +00:00
Fixed function call in basicDataStorage and added a missing function from the local version
This commit is contained in:
parent
37928a28e2
commit
ee56603062
3 changed files with 40 additions and 28 deletions
|
|
@ -147,7 +147,7 @@ function getSubStrPos(%string,%str,%num)
|
|||
{
|
||||
%curPos = %i;
|
||||
%sub = getSubStr(%string,%i,1);
|
||||
|
||||
|
||||
if (%sub $= %str)
|
||||
{
|
||||
if (%subC == %num)
|
||||
|
|
@ -168,7 +168,7 @@ function strWhite(%string, %whiteList, %char)
|
|||
for (%h = 0; %h < %charLen; %h++)
|
||||
{
|
||||
%whiteSeg = getSubStr(%whiteList, %i, %charLen);
|
||||
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -182,6 +182,19 @@ function getFileNameFromString(%string)
|
|||
return getSubStr(%string,getSubStrPos(%string, "/", getSubStrOccurances(%string, "/")-1)+1,strLen(%string));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
function subWordCapitalize(%string)
|
||||
{
|
||||
%current = "";
|
||||
for (%i = 0; %i < getWordCount(%string); %i++)
|
||||
{
|
||||
%word = getWord(%string, %i);
|
||||
%word = strUpr(getSubStr(%word, 0, 1)) @ getSubStr(%word, 1, strLen(%word));
|
||||
%current = %current SPC %word;
|
||||
}
|
||||
return trim(%current);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
function getFileExtensionFromString(%string)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue