ReactOS  0.4.15-dev-1049-g1062a29
utnonansi.c File Reference
#include "acpi.h"
#include "accommon.h"
Include dependency graph for utnonansi.c:

Go to the source code of this file.

Macros

#define _COMPONENT   ACPI_UTILITIES
 

Functions

void AcpiUtStrlwr (char *SrcString)
 
void AcpiUtStrupr (char *SrcString)
 
int AcpiUtStricmp (char *String1, char *String2)
 

Macro Definition Documentation

◆ _COMPONENT

#define _COMPONENT   ACPI_UTILITIES

Definition at line 48 of file utnonansi.c.

Function Documentation

◆ AcpiUtStricmp()

int AcpiUtStricmp ( char String1,
char String2 
)

Definition at line 144 of file utnonansi.c.

147 {
148  int c1;
149  int c2;
150 
151 
152  do
153  {
154  c1 = tolower ((int) *String1);
155  c2 = tolower ((int) *String2);
156 
157  String1++;
158  String2++;
159  }
160  while ((c1 == c2) && (c1));
161 
162  return (c1 - c2);
163 }
_In_ const STRING * String2
Definition: rtlfuncs.h:2291
int tolower(int c)
Definition: utclib.c:902

◆ AcpiUtStrlwr()

void AcpiUtStrlwr ( char SrcString)

Definition at line 69 of file utnonansi.c.

71 {
72  char *String;
73 
74 
76 
77 
78  if (!SrcString)
79  {
80  return;
81  }
82 
83  /* Walk entire string, lowercasing the letters */
84 
85  for (String = SrcString; *String; String++)
86  {
87  *String = (char) tolower ((int) *String);
88  }
89 }
static WCHAR String[]
Definition: stringtable.c:55
unsigned char
Definition: typeof.h:29
#define ACPI_FUNCTION_ENTRY()
Definition: acoutput.h:484
int tolower(int c)
Definition: utclib.c:902

◆ AcpiUtStrupr()

void AcpiUtStrupr ( char SrcString)

Definition at line 105 of file utnonansi.c.

107 {
108  char *String;
109 
110 
112 
113 
114  if (!SrcString)
115  {
116  return;
117  }
118 
119  /* Walk entire string, uppercasing the letters */
120 
121  for (String = SrcString; *String; String++)
122  {
123  *String = (char) toupper ((int) *String);
124  }
125 }
static WCHAR String[]
Definition: stringtable.c:55
unsigned char
Definition: typeof.h:29
#define ACPI_FUNCTION_ENTRY()
Definition: acoutput.h:484
int toupper(int c)
Definition: utclib.c:881