FreeRDP
unicode_android.c File Reference
#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)
 

Macro Definition Documentation

◆ MIN

#define MIN (   a,
 
)    (a) < (b) ? (a) : (b)

WinPR: Windows Portable Runtime Unicode Conversion (CRT)

Copyright 2022 Armin Novak anova.nosp@m.k@th.nosp@m.incas.nosp@m.t.co.nosp@m.m Copyright 2022 Thincast Technologies GmbH

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.

◆ TAG

#define TAG   WINPR_TAG("unicode")

Function Documentation

◆ convert()

static int convert ( const void *  data,
size_t  size,
void *  buffer,
size_t  buffersize,
BOOL  toUTF16 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ convert_int()

static int convert_int ( JNIEnv *  env,
const void *  data,
size_t  size,
void *  buffer,
size_t  buffersize,
BOOL  toUTF16 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ int_MultiByteToWideChar()

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.nosp@m.k@th.nosp@m.incas.nosp@m.t.co.nosp@m.m Copyright 2022 Thincast Technologies GmbH

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_WideCharToMultiByte()

int int_WideCharToMultiByte ( UINT  CodePage,
DWORD  dwFlags,
LPCWSTR  lpWideCharStr,
int  cchWideChar,
LPSTR  lpMultiByteStr,
int  cbMultiByte,
LPCSTR  lpDefaultChar,
LPBOOL  lpUsedDefaultChar 
)