2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
6 #include <wchar_private.h>
10 __mblen(const char* s
, size_t n
)
12 static mbstate_t internalMbState
;
16 static const mbstate_t initial
;
18 internalMbState
= initial
;
20 return 0; // we do not support stateful converters
23 rval
= __mbrtowc(NULL
, s
, n
, &internalMbState
);
25 if (rval
== -1 || rval
== -2)
32 B_DEFINE_WEAK_ALIAS(__mblen
, mblen
);