Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Wasabi/bfc/parse/paramparser.cpp

20 lines
461 B
C++
Raw Normal View History

2024-09-24 12:54:57 +00:00
#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;
}