mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-26 12:05:36 +01:00
37 lines
721 B
C
37 lines
721 B
C
//
|
|
// wfunction.hpp
|
|
// cpp_tests
|
|
//
|
|
// Created by jief on 15.03.20.
|
|
// Copyright © 2020 Jief_Machak. All rights reserved.
|
|
//
|
|
|
|
#ifndef __xcode_utf16_h__
|
|
#define __xcode_utf16_h__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdlib.h>
|
|
/*
|
|
* all the functions w... seems to expect utf32 even when compiled with short-wchar
|
|
*/
|
|
|
|
size_t wcslen_fixed(const wchar_t *s);
|
|
int wcsncmp_fixed(const wchar_t *s1, const wchar_t * s2, size_t n);
|
|
#ifdef _LIBCPP_WCHAR_H
|
|
wchar_t* wcsstr_fixed(const wchar_t* haystack, const wchar_t* needle);
|
|
#else
|
|
wchar_t* wcsstr_fixed(const wchar_t* haystack, const wchar_t* needle);
|
|
#endif
|
|
|
|
void xcode_utf_fixed_tests(void);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* wfunction_hpp */
|