]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.10/Objects/stringlib/count.h
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Objects / stringlib / count.h
diff --git a/AppPkg/Applications/Python/Python-2.7.10/Objects/stringlib/count.h b/AppPkg/Applications/Python/Python-2.7.10/Objects/stringlib/count.h
deleted file mode 100644 (file)
index 216c269..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/* stringlib: count implementation */\r
-\r
-#ifndef STRINGLIB_COUNT_H\r
-#define STRINGLIB_COUNT_H\r
-\r
-#ifndef STRINGLIB_FASTSEARCH_H\r
-#error must include "stringlib/fastsearch.h" before including this module\r
-#endif\r
-\r
-Py_LOCAL_INLINE(Py_ssize_t)\r
-stringlib_count(const STRINGLIB_CHAR* str, Py_ssize_t str_len,\r
-                const STRINGLIB_CHAR* sub, Py_ssize_t sub_len,\r
-                Py_ssize_t maxcount)\r
-{\r
-    Py_ssize_t count;\r
-\r
-    if (str_len < 0)\r
-        return 0; /* start > len(str) */\r
-    if (sub_len == 0)\r
-        return (str_len < maxcount) ? str_len + 1 : maxcount;\r
-\r
-    count = fastsearch(str, str_len, sub, sub_len, maxcount, FAST_COUNT);\r
-\r
-    if (count < 0)\r
-        return 0; /* no match */\r
-\r
-    return count;\r
-}\r
-\r
-#endif\r