txlyre 6 天之前
父節點
當前提交
4ff48f5f3b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      qic.c

+ 2 - 2
qic.c

@@ -3533,7 +3533,7 @@ const char *STD[][2] = {
              "      i += l\n"
              "    }\n"
              "  }\n"
-             "  nth (this, i): str(utf8_encode(this._ucs[i]))\n"
+             "  nth (this, i): this._ucs[i]\n"
              "  __type (this): \"ustr\"\n"
              "  __str (this) {\n"
              "    var s = \"\"\n"
@@ -3542,7 +3542,7 @@ const char *STD[][2] = {
              "    return s\n"
              "  }\n"
              "  __len (this): len(this._ucs)\n"
-             "  __index (this, i): this._ucs[i]\n"
+             "  __index (this, i): ustr([this._ucs[i]])\n"
              "  __index_set (this): throw\n"
              "  __iter (this): this._ucs\n"
              "  __list (this): list_copy(this._ucs)\n"