txlyre 1 week ago
parent
commit
fb88db81f9
1 changed files with 5 additions and 0 deletions
  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",