@@ -167,31 +167,37 @@ The following functions provide locale-independent string to number conversions.
167167 Case insensitive comparison of strings. The function works almost
168168 identically to :c:func: `!strcmp ` except that it ignores the case and locale.
169169
170- Return ``0 `` if the strings are equal, a negative value if *str1 * is less
171- than *str2 *, or a positive value if *str1 * is greater than *str2 *.
172-
173- This function cannot fail.
170+ This is an alias of :c:func: `PyOS_stricmp ` on all platforms except Windows.
174171
175172
176173.. c :function :: int PyOS_strnicmp (const char *s1, const char *s2, Py_ssize_t size)
177174
178175 Case insensitive comparison of strings. The function works almost
179176 identically to :c:func: `!strncmp ` except that it ignores the case and locale.
180177
178+ This is an alias of :c:func: `PyOS_mystricmp ` on all platforms except Windows.
179+
180+
181+ .. c :function :: int PyOS_mystricmp (const char *str1, const char *str2)
182+
183+ Case insensitive comparison of strings. The function works almost
184+ identically to :c:func: `!strcmp ` except that it ignores the case and locale.
185+
181186 Return ``0 `` if the strings are equal, a negative value if *str1 * is less
182187 than *str2 *, or a positive value if *str1 * is greater than *str2 *.
183188
184189 This function cannot fail.
185190
186191
187- .. c :function :: int PyOS_mystricmp (const char *str1, const char *str2)
188-
189- This is an alias of :c:func: `PyOS_stricmp ` on all platforms except Windows.
192+ .. c :function :: int PyOS_mystrnicmp (const char *str1, const char *str2, Py_ssize_t size)
190193
194+ Case insensitive comparison of strings. The function works almost
195+ identically to :c:func: `!strncmp ` except that it ignores the case and locale.
191196
192- .. c :function :: int PyOS_mystrnicmp (const char *str1, const char *str2, Py_ssize_t size)
197+ Return ``0 `` if the strings are equal, a negative value if *str1 * is less
198+ than *str2 *, or a positive value if *str1 * is greater than *str2 *.
193199
194- This is an alias of :c:func: ` PyOS_mystricmp ` on all platforms except Windows .
200+ This function cannot fail .
195201
196202
197203Character classification and conversion
0 commit comments