txlyre 4 月之前
父节点
当前提交
fb88db81f9
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      qic.c

+ 5 - 0
qic.c

@@ -4095,6 +4095,11 @@ const char *STD[][2] = {
              "      return false\n"
              "      return false\n"
              "    return this._ucs == other._ucs\n"
              "    return this._ucs == other._ucs\n"
              "  }\n"
              "  }\n"
+             "  __in (this, other) {\n"
+             "    if type(other) !in (\"ustr\", \"str\")\n"
+             "      throw\n"
+             "    return str(this) in str(other)\n"
+             "  }\n"
              "}\n"},
              "}\n"},
 
 
     {"thread",
     {"thread",