Skip to content

Commit

Permalink
YAYA Tc569-5 の TOLOWER / TOUPPER の第2パラメータ追加に対応
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolat committed Feb 14, 2022
1 parent b877a7b commit 9037303
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 4 deletions.
19 changes: 17 additions & 2 deletions yaya_saori/builtins.aym
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,17 @@ toint

tolower
{
RES.RESULT = TOLOWER(REQ.ARGS[0])
if ARRAYSIZE(REQ.ARGS) < 1 {
LOGGING("tolower: 引数が不足しています")
-1
return
}
elseif ARRAYSIZE(REQ.ARGS) == 1 {
RES.RESULT = TOLOWER(REQ.ARGS[0])
}
else {
RES.RESULT = TOLOWER(REQ.ARGS[0], REQ.ARGS[1])
}
}

// 再び文字列で戻るので意味なし
Expand Down Expand Up @@ -1030,7 +1040,12 @@ toupper
-1
return
}
RES.RESULT = TOUPPER(REQ.ARGS[0])
elseif ARRAYSIZE(REQ.ARGS) == 1 {
RES.RESULT = TOUPPER(REQ.ARGS[0])
}
else {
RES.RESULT = TOUPPER(REQ.ARGS[0], REQ.ARGS[1])
}
}

unloadlib
Expand Down
5 changes: 4 additions & 1 deletion yaya_saori/messagetxt/classical-chinese.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*天戒E0015:內誤(二)。
*天戒E0016:內誤(三)。
*天戒E0017:缺列名于串中。
*天戒E0018:于串中缺列者序
*天戒E0018:缺列者序于串中
*天戒E0019:()未正閉。
*天戒E0020:[]未正閉或效。
*天戒E0021:內誤(四)。
Expand Down Expand Up @@ -108,6 +108,8 @@
*天戒E0096:欲弃空文。
*天戒E0097:術行之深及限。后行乃止。
*天戒E0098:循環數及限。后行乃止。
*天戒E0099:內存及限。后行乃止。
*天戒E0100:謬址。后行乃止。
//
// ワーニング文列(古中語)
!!!msgw
Expand All @@ -134,6 +136,7 @@
*大過W0020:須素偶而能創雜。
*大過W0021:此見空文。
*大過W0022:此案始得序。
*大過W0023:數復之而有損。
//
// 注記文列(古中語)
!!!msgn
Expand Down
3 changes: 3 additions & 0 deletions yaya_saori/messagetxt/english.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@
*error E0096 : Attempted to unload a dictionary that was not loaded.
*error E0097 : Depth of the function call has reached its limit. Following execution has been aborted.
*error E0098 : Loop count has reached its limit. Following execution has been aborted.
*error E0099 : The occupied memory limit has been reached. Following execution has been aborted.
*error E0100 : Wrong memory address accessed. Following execution has been aborted.
//
// ワーニング文字列(英語)
!!!msgw
Expand All @@ -134,6 +136,7 @@
*warning W0020 : Requires even number of elements to create hash.
*warning W0021 : Empty here document found.
*warning W0022 : Here document start sequence found.
*warning W0023 : Some information was lost during the process of restoring variables.
//
// 注記文字列(英語)
!!!msgn
Expand Down
3 changes: 3 additions & 0 deletions yaya_saori/messagetxt/japanese.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@
*error E0096 : 読み込まれていない辞書ファイルを開放しようとしました.
*error E0097 : 関数呼び出しの深さが限界に達しました.以降の処理を強制中断しました.
*error E0098 : ループ回数が限界に達しました.以降の処理を強制中断しました.
*error E0099 : 搭載メモリの制限に達しました.以降の処理を強制中断しました.
*error E0100 : 不正なメモリアドレスへのアクセスがありました.以降の処理を強制中断しました.
//
// ワーニング文字列(日本語)
!!!msgw
Expand All @@ -134,6 +136,7 @@
*warning W0020 : 連想配列の生成には偶数個の要素が必要です.
*warning W0021 : 空のヒアドキュメントがあります.
*warning W0022 : ヒアドキュメント開始文字列が(ヒアドキュメント中に)見つかりました.
*warning W0023 : 変数復元処理中に一部の情報が失われました.
//
// 注記文字列(日本語)
!!!msgn
Expand Down
5 changes: 4 additions & 1 deletion yaya_saori/messagetxt/simplified-chinese.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@
*错误E0095:尝试加载重复辞书。
*错误E0096:试图卸载未加载的辞书。
*错误E0097:函数调用的深度已经达到限制。后续的执行已被中止。
*错误E0098:循环次数已达到限制。后续的执行已被中止。
*错误E0098:循环次数已经达到限制。后续的执行已被中止。
*错误E0099:占用的内存已经达到限制。后续的执行已被中止。
*错误E0100:访问错误的内存地址。后续的执行已被中止。
//
// ワーニング文字列(中國語)
!!!msgw
Expand All @@ -134,6 +136,7 @@
*警告W0020:需要偶数个元素才能创建哈希。
*警告W0021:此处发现空文档。
*警告W0022:此处找到文档开始序列。
*警告W0023:有损失的变量恢复。
//
// 注記文字列(中國語)
!!!msgn
Expand Down
3 changes: 3 additions & 0 deletions yaya_saori/messagetxt/traditional-chinese.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@
*錯誤E0096:試圖卸載未加載的辭書。
*錯誤E0097:函數調用的深度已經達到限制。後續的執行已被中止。
*錯誤E0098:迴圈次數已達到限制。後續的執行已被中止。
*錯誤E0099:佔用的記憶體已經達到限制。後續的執行已被中止。
*錯誤E0100:訪問錯誤的記憶體位址。後續的執行已被中止。
//
// ワーニング文字列(中國語)
!!!msgw
Expand All @@ -134,6 +136,7 @@
*警告W0020:需要偶數個元素才能創建雜湊。
*警告W0021:此處發現空檔案。
*警告W0022:此處找到檔案開始序列。
*警告W0023:有損失的變數恢復。
//
// 注記文字列(中國語)
!!!msgn
Expand Down
Binary file modified yaya_saori/yaya.dll
Binary file not shown.

0 comments on commit 9037303

Please sign in to comment.