top of page
os = reaper.GetOS()
if "Win" == string.match(os,"(Win)") then
package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dll"
else
package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dylib"
end
require("reaper_AZSTOKE_SILVER")
function Msg(param)
reaper.ShowConsoleMsg(tostring(param).."\n")
end
baseStr = "a,b,c,d,e"
retval,splitList = AZ_SILVER.AZ_GetStringSplitList(baseStr,",")
for i, value in pairs(splitList) do
Msg(value)
end
- SIMPLE SCRIPT -
retval,splitList = AZ_SILVER.AZ_GetStringSplitList(baseStr,splitStr)
- API -
対応バージョン:
1.0.0
以降
STRING
AZ_SILVER.AZ_GetStringSplitList
指定テキストの指定区切り文字で配列出力
Python
- API Detail -
▼入力値
baseStr (string):ベースのテキスト
splitStr(string) : 区切り文字
▼出力値
retval(boolean):API実行の成否
splitList(table)(string) : 区切り文字で切り替えて配列出力
bottom of page