1
0

paramparser.cpp 461 B

1234567891011121314151617181920
  1. #include "precomp_wasabi_bfc.h"
  2. #include "paramparser.h"
  3. #include <bfc/nsguid.h>
  4. #include <bfc/wasabi_std.h>
  5. int ParamParser::findGuid(GUID g) {
  6. for (int i=0;i<getNumItems();i++) {
  7. const wchar_t *e = enumItem(i);
  8. GUID eguid = nsGUID::fromCharW(e);
  9. if (g == eguid) return i;
  10. }
  11. return -1;
  12. }
  13. int ParamParser::findString(const wchar_t *str) {
  14. for (int i=0;i<getNumItems();i++) {
  15. if (!WCSICMP(str, enumItem(i))) return i;
  16. }
  17. return -1;
  18. }