ReactOS 0.4.16-dev-2332-g4cba65d
unicode_vista.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * PURPOSE: Unicode Conversion Routines
5 * FILE: lib/rtl/unicode_vista.c
6 * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
7 * Emanuele Aliberti
8 * Gunnar Dalsnes
9 */
10
11/* INCLUDES *****************************************************************/
12
13#include <rtl.h>
14
15#include <wine/unicode.h>
16
17/* FUNCTIONS *****************************************************************/
18
19/*
20 * @implemented
21 */
25LONG
33{
34 LONG Result = 0;
35 SIZE_T MinStringLength = min(String1Length, String2Length);
37
39 {
40 for (Index = 0; Index < MinStringLength; Index++)
41 {
42 WCHAR Char1 = RtlUpcaseUnicodeChar(String1[Index]);
44 Result = Char1 - Char2;
45 if (Result != 0)
46 {
47 return Result;
48 }
49 }
50 }
51 else
52 {
53 for (Index = 0; Index < MinStringLength; Index++)
54 {
55 Result = String1[Index] - String2[Index];
56 if (Result != 0)
57 {
58 return Result;
59 }
60 }
61 }
62
64}
unsigned char BOOLEAN
Definition: actypes.h:127
#define NTSYSAPI
Definition: ntoskrnl.h:12
#define _IRQL_requires_max_(irql)
Definition: driverspecs.h:230
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
#define min(a, b)
Definition: monoChain.cc:55
_In_ const STRING * String2
Definition: rtlfuncs.h:2404
_In_ const STRING _In_ BOOLEAN CaseInSensitive
Definition: rtlfuncs.h:2437
_Must_inspect_result_ NTSYSAPI LONG NTAPI RtlCompareUnicodeStrings(_In_reads_(String1Length) PCWCH String1, _In_ SIZE_T String1Length, _In_reads_(String2Length) PCWCH String2, _In_ SIZE_T String2Length, _In_ BOOLEAN CaseInSensitive)
WCHAR NTAPI RtlUpcaseUnicodeChar(_In_ WCHAR Source)
Definition: nlsboot.c:176
#define _In_reads_(s)
Definition: no_sal2.h:168
#define _Must_inspect_result_
Definition: no_sal2.h:62
#define _In_
Definition: no_sal2.h:158
CONST WCHAR * PCWCH
Definition: ntbasedef.h:423
long LONG
Definition: pedump.c:60
#define NTAPI
Definition: typedefs.h:36
ULONG_PTR SIZE_T
Definition: typedefs.h:80
_In_ WDFCOLLECTION _In_ ULONG Index
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:409
_In_ SIZE_T _In_ SIZE_T String2Length
Definition: rtlfuncs.h:518
_In_ SIZE_T String1Length
Definition: rtlfuncs.h:516
__wchar_t WCHAR
Definition: xmlstorage.h:180