Initial MSVC 2008 projects workspace
This commit is contained in:
16
L2C_Server/utils/Utils.cpp
Normal file
16
L2C_Server/utils/Utils.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "pch.h"
|
||||
#include "Utils.h"
|
||||
|
||||
bool Utils_isValidCharName( const wchar_t *name )
|
||||
{
|
||||
if( !name ) return false;
|
||||
size_t nl = wcslen( name );
|
||||
if( nl < 3 ) return false;
|
||||
size_t i = 0;
|
||||
for( i=0; i<nl; i++ )
|
||||
{
|
||||
wchar_t c = name[i];
|
||||
if( !iswalnum( c ) ) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
Reference in New Issue
Block a user