[ttssh2-dev 658] 次のリリース: 対応残件: マクロ

Back to archive index
matsuo zmats****@gmail*****
2023年 8月 5日 (土) 00:15:03 JST


松尾です。

タイトルを変更しました。

コマンドの中で、文字長に関連するものをピックアップしました。

- 文字区切り
   - str2code
     https://ttssh2.osdn.jp/manual/5/ja/macro/command/str2code.html
- 引数にpos(or index)あり
   - strcopy
     https://ttssh2.osdn.jp/manual/5/ja/macro/command/strcopy.html
   - strinsert
     https://ttssh2.osdn.jp/manual/5/ja/macro/command/strinsert.html
   - strremove
     https://ttssh2.osdn.jp/manual/5/ja/macro/command/strremove.html
   - strreplace
     https://ttssh2.osdn.jp/manual/5/ja/macro/command/strreplace.html
- 戻り値
   - strlen
     https://ttssh2.osdn.jp/manual/5/ja/macro/command/strlen.html
     - 戻り値がバイト数
   - strmatch
     https://ttssh2.osdn.jp/manual/5/ja/macro/command/strmatch.html
     resultがマッチ位置(バイト数)

ソースを見たところ文字の長さ(位置)はすべてバイト数になっています。
strmatch の戻り値もバイト数のようです。

code2str と str2code の動作で、
  code2str
   https://ttssh2.osdn.jp/manual/5/ja/macro/command/code2str.html
ASCIIコード値となっているところを
Unicodeのコードポイントとすればよいのかなと思いました。

この修正も5.0の後にしましょうか。



ttssh2-dev メーリングリストの案内
Back to archive index