FreeRDP
|
#include <winpr/config.h>
#include <winpr/assert.h>
#include <winpr/string.h>
#include "../utils/android.h"
#include "../log.h"
Macros | |
#define | MIN(a, b) (a) < (b) ? (a) : (b) |
#define | TAG WINPR_TAG("unicode") |
Functions | |
static int | convert_int (JNIEnv *env, const void *data, size_t size, void *buffer, size_t buffersize, BOOL toUTF16) |
static int | convert (const void *data, size_t size, void *buffer, size_t buffersize, BOOL toUTF16) |
int | int_MultiByteToWideChar (UINT CodePage, DWORD dwFlags, LPCSTR lpMultiByteStr, int cbMultiByte, LPWSTR lpWideCharStr, int cchWideChar) |
int | int_WideCharToMultiByte (UINT CodePage, DWORD dwFlags, LPCWSTR lpWideCharStr, int cchWideChar, LPSTR lpMultiByteStr, int cbMultiByte, LPCSTR lpDefaultChar, LPBOOL lpUsedDefaultChar) |
#define MIN | ( | a, | |
b | |||
) | (a) < (b) ? (a) : (b) |
WinPR: Windows Portable Runtime Unicode Conversion (CRT)
Copyright 2022 Armin Novak anova Copyright 2022 Thincast Technologies GmbH k@th incas t.co m
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
#define TAG WINPR_TAG("unicode") |
|
static |
|
static |
int int_MultiByteToWideChar | ( | UINT | CodePage, |
DWORD | dwFlags, | ||
LPCSTR | lpMultiByteStr, | ||
int | cbMultiByte, | ||
LPWSTR | lpWideCharStr, | ||
int | cchWideChar | ||
) |
WinPR: Windows Portable Runtime Unicode Conversion (CRT)
Copyright 2022 Armin Novak anova Copyright 2022 Thincast Technologies GmbH k@th incas t.co m
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
int int_WideCharToMultiByte | ( | UINT | CodePage, |
DWORD | dwFlags, | ||
LPCWSTR | lpWideCharStr, | ||
int | cchWideChar, | ||
LPSTR | lpMultiByteStr, | ||
int | cbMultiByte, | ||
LPCSTR | lpDefaultChar, | ||
LPBOOL | lpUsedDefaultChar | ||
) |