2020-04-24 11:30:09 +02:00
|
|
|
//
|
|
|
|
// wfunction.hpp
|
|
|
|
// cpp_tests
|
|
|
|
//
|
|
|
|
// Created by jief on 15.03.20.
|
|
|
|
// Copyright © 2020 JF Knudsen. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __xcode_utf16_h__
|
|
|
|
#define __xcode_utf16_h__
|
|
|
|
|
2020-10-12 16:49:43 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2020-04-24 11:30:09 +02:00
|
|
|
|
2020-10-12 16:49:43 +02:00
|
|
|
#include <stdlib.h>
|
2020-04-24 11:30:09 +02:00
|
|
|
/*
|
|
|
|
* 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);
|
|
|
|
const wchar_t* wcsstr_fixed(const wchar_t* s1, const wchar_t* s2);
|
|
|
|
|
2020-10-12 16:49:43 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2020-04-24 11:30:09 +02:00
|
|
|
|
|
|
|
#endif /* wfunction_hpp */
|