mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
27 lines
360 B
C++
27 lines
360 B
C++
#include "StringManipulation.h"
|
|
|
|
PCHAR CaplockStringA(PCHAR Ptr)
|
|
{
|
|
PCHAR sv = Ptr;
|
|
while (*sv != '\0')
|
|
{
|
|
if (*sv >= 'a' && *sv <= 'z')
|
|
*sv = *sv - ('a' - 'A');
|
|
|
|
sv++;
|
|
}
|
|
return Ptr;
|
|
}
|
|
|
|
PWCHAR CaplockStringW(PWCHAR Ptr)
|
|
{
|
|
PWCHAR sv = Ptr;
|
|
while (*sv != '\0')
|
|
{
|
|
if (*sv >= 'a' && *sv <= 'z')
|
|
*sv = *sv - ('a' - 'A');
|
|
|
|
sv++;
|
|
}
|
|
return Ptr;
|
|
} |