[CRT] Remove _mbstrlen

This commit is contained in:
Timo Kreuzer
2026-04-11 10:10:13 +03:00
parent 420a4bc9cb
commit c7a4ea9d48
4 changed files with 0 additions and 43 deletions

View File

@@ -6,7 +6,6 @@ add_definitions(-D_CRTBLD)
include(except/except.cmake)
include(float/float.cmake)
include(math/math.cmake)
include(mbstring/mbstring.cmake)
include(mem/mem.cmake)
include(misc/misc.cmake)
include(printf/printf.cmake)

View File

@@ -3,7 +3,6 @@ list(APPEND LIBCNTPR_SOURCE
${LIBCNTPR_EXCEPT_SOURCE}
${LIBCNTPR_FLOAT_SOURCE}
${LIBCNTPR_MATH_SOURCE}
${LIBCNTPR_MBSTRING_SOURCE}
${LIBCNTPR_MEM_SOURCE}
${LIBCNTPT_MISC_SOURCE}
${LIBCNTPR_PRINTF_SOURCE}

View File

@@ -1,4 +0,0 @@
list(APPEND LIBCNTPR_MBSTRING_SOURCE
mbstring/mbstrlen.c
)

View File

@@ -1,37 +0,0 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/sdk/crt/mbstring/mbstrlen.c
* PURPOSE: Determines the length of a multi byte string, current locale
* PROGRAMERS:
* Copyright 1999 Alexandre Julliard
* Copyright 2000 Jon Griffths
*
*/
#include <mbstring.h>
#include <stdlib.h>
#ifdef _LIBCNT_
unsigned short *NlsLeadByteInfo;
#define isleadbyte(c) NlsLeadByteInfo[c]
#else
int isleadbyte(int byte);
#endif
/*
* @implemented
*/
size_t __cdecl _mbstrlen( const char *str )
{
size_t len = 0;
while(*str)
{
/* FIXME: According to the documentation we are supposed to test for
* multi-byte character validity. Whatever that means
*/
str += isleadbyte((unsigned char)*str) ? 2 : 1;
len++;
}
return len;
}