Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
20
Src/Wasabi/bfc/parse/paramparser.cpp
Normal file
20
Src/Wasabi/bfc/parse/paramparser.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "precomp_wasabi_bfc.h"
|
||||
#include "paramparser.h"
|
||||
#include <bfc/nsguid.h>
|
||||
#include <bfc/wasabi_std.h>
|
||||
|
||||
int ParamParser::findGuid(GUID g) {
|
||||
for (int i=0;i<getNumItems();i++) {
|
||||
const wchar_t *e = enumItem(i);
|
||||
GUID eguid = nsGUID::fromCharW(e);
|
||||
if (g == eguid) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
int ParamParser::findString(const wchar_t *str) {
|
||||
for (int i=0;i<getNumItems();i++) {
|
||||
if (!WCSICMP(str, enumItem(i))) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue