FreeRDP
string.c File Reference
#include <winpr/config.h>
#include <errno.h>
#include <stdio.h>
#include <ctype.h>
#include <wctype.h>
#include <wchar.h>
#include <winpr/crt.h>
#include <winpr/endian.h>
#include "../log.h"
#include "casing.c"

Macros

#define TAG   WINPR_TAG("crt")
 

Functions

char * _strdup (const char *strSource)
 
WCHAR * _wcsdup (const WCHAR *strSource)
 
int _stricmp (const char *string1, const char *string2)
 
int _strnicmp (const char *string1, const char *string2, size_t count)
 
int _wcscmp (const WCHAR *string1, const WCHAR *string2)
 
size_t _wcslen (const WCHAR *str)
 
size_t _wcsnlen (const WCHAR *str, size_t max)
 
WCHAR * _wcschr (const WCHAR *str, WCHAR value)
 
WCHAR * _wcsrchr (const WCHAR *str, WCHAR c)
 
char * strtok_s (char *strToken, const char *strDelimit, char **context)
 
WCHAR * wcstok_s (WCHAR *strToken, const WCHAR *strDelimit, WCHAR **context)
 
LPSTR CharUpperA (LPSTR lpsz)
 
LPWSTR CharUpperW (LPWSTR lpsz)
 
DWORD CharUpperBuffA (LPSTR lpsz, DWORD cchLength)
 
DWORD CharUpperBuffW (LPWSTR lpsz, DWORD cchLength)
 
LPSTR CharLowerA (LPSTR lpsz)
 
LPWSTR CharLowerW (LPWSTR lpsz)
 
DWORD CharLowerBuffA (LPSTR lpsz, DWORD cchLength)
 
DWORD CharLowerBuffW (LPWSTR lpsz, DWORD cchLength)
 
BOOL IsCharAlphaA (CHAR ch)
 
BOOL IsCharAlphaW (WCHAR ch)
 
BOOL IsCharAlphaNumericA (CHAR ch)
 
BOOL IsCharAlphaNumericW (WCHAR ch)
 
BOOL IsCharUpperA (CHAR ch)
 
BOOL IsCharUpperW (WCHAR ch)
 
BOOL IsCharLowerA (CHAR ch)
 
BOOL IsCharLowerW (WCHAR ch)
 
int lstrlenA (LPCSTR lpString)
 
int lstrlenW (LPCWSTR lpString)
 
int lstrcmpA (LPCSTR lpString1, LPCSTR lpString2)
 
int lstrcmpW (LPCWSTR lpString1, LPCWSTR lpString2)
 
int ConvertLineEndingToLF (char *str, int size)
 
char * ConvertLineEndingToCRLF (const char *str, int *size)
 
char * StrSep (char **stringp, const char *delim)
 
INT64 GetLine (char **lineptr, size_t *size, FILE *stream)
 

Macro Definition Documentation

◆ TAG

#define TAG   WINPR_TAG("crt")

WinPR: Windows Portable Runtime String Manipulation (CRT)

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

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.

Function Documentation

◆ _strdup()

char* _strdup ( const char *  strSource)

◆ _stricmp()

int _stricmp ( const char *  string1,
const char *  string2 
)
Here is the caller graph for this function:

◆ _strnicmp()

int _strnicmp ( const char *  string1,
const char *  string2,
size_t  count 
)
Here is the caller graph for this function:

◆ _wcschr()

WCHAR* _wcschr ( const WCHAR *  str,
WCHAR  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _wcscmp()

int _wcscmp ( const WCHAR *  string1,
const WCHAR *  string2 
)
Here is the caller graph for this function:

◆ _wcsdup()

WCHAR* _wcsdup ( const WCHAR *  strSource)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _wcslen()

size_t _wcslen ( const WCHAR *  str)
Here is the caller graph for this function:

◆ _wcsnlen()

size_t _wcsnlen ( const WCHAR *  str,
size_t  max 
)
Here is the caller graph for this function:

◆ _wcsrchr()

WCHAR* _wcsrchr ( const WCHAR *  str,
WCHAR  c 
)
Here is the caller graph for this function:

◆ CharLowerA()

LPSTR CharLowerA ( LPSTR  lpsz)

◆ CharLowerBuffA()

DWORD CharLowerBuffA ( LPSTR  lpsz,
DWORD  cchLength 
)

◆ CharLowerBuffW()

DWORD CharLowerBuffW ( LPWSTR  lpsz,
DWORD  cchLength 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CharLowerW()

LPWSTR CharLowerW ( LPWSTR  lpsz)
Here is the call graph for this function:

◆ CharUpperA()

LPSTR CharUpperA ( LPSTR  lpsz)
Here is the caller graph for this function:

◆ CharUpperBuffA()

DWORD CharUpperBuffA ( LPSTR  lpsz,
DWORD  cchLength 
)
Here is the caller graph for this function:

◆ CharUpperBuffW()

DWORD CharUpperBuffW ( LPWSTR  lpsz,
DWORD  cchLength 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CharUpperW()

LPWSTR CharUpperW ( LPWSTR  lpsz)
Here is the call graph for this function:

◆ ConvertLineEndingToCRLF()

char* ConvertLineEndingToCRLF ( const char *  str,
int *  size 
)
Here is the caller graph for this function:

◆ ConvertLineEndingToLF()

int ConvertLineEndingToLF ( char *  str,
int  size 
)
Here is the caller graph for this function:

◆ GetLine()

INT64 GetLine ( char **  lineptr,
size_t *  size,
FILE *  stream 
)
Here is the caller graph for this function:

◆ IsCharAlphaA()

BOOL IsCharAlphaA ( CHAR  ch)

◆ IsCharAlphaNumericA()

BOOL IsCharAlphaNumericA ( CHAR  ch)

◆ IsCharAlphaNumericW()

BOOL IsCharAlphaNumericW ( WCHAR  ch)

◆ IsCharAlphaW()

BOOL IsCharAlphaW ( WCHAR  ch)
Here is the caller graph for this function:

◆ IsCharLowerA()

BOOL IsCharLowerA ( CHAR  ch)

◆ IsCharLowerW()

BOOL IsCharLowerW ( WCHAR  ch)

◆ IsCharUpperA()

BOOL IsCharUpperA ( CHAR  ch)

◆ IsCharUpperW()

BOOL IsCharUpperW ( WCHAR  ch)

◆ lstrcmpA()

int lstrcmpA ( LPCSTR  lpString1,
LPCSTR  lpString2 
)

◆ lstrcmpW()

int lstrcmpW ( LPCWSTR  lpString1,
LPCWSTR  lpString2 
)
Here is the caller graph for this function:

◆ lstrlenA()

int lstrlenA ( LPCSTR  lpString)
Here is the caller graph for this function:

◆ lstrlenW()

int lstrlenW ( LPCWSTR  lpString)
Here is the caller graph for this function:

◆ StrSep()

char* StrSep ( char **  stringp,
const char *  delim 
)
Here is the caller graph for this function:

◆ strtok_s()

char* strtok_s ( char *  strToken,
const char *  strDelimit,
char **  context 
)
Here is the caller graph for this function:

◆ wcstok_s()

WCHAR* wcstok_s ( WCHAR *  strToken,
const WCHAR *  strDelimit,
WCHAR **  context 
)
Here is the call graph for this function:
Here is the caller graph for this function: