Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. bool FileDialog::Execute()
  2. {
  3. String strippedFilters;
  4.  
  5. U32 filtersCount = StringUnit::getUnitCount(mData.mFilters, "|");
  6.  
  7. for (U32 i = 1; i < filtersCount; ++i)
  8. {
  9. //The first of each pair is the name, which we'll skip because NFD doesn't support named filters atm
  10. const char *filter = StringUnit::getUnit(mData.mFilters, i, "|");
  11.  
  12. if (!dStrcmp(filter, "*.*"))
  13. continue;
  14.  
  15. U32 c = 2;
  16. const char* tmpchr = &filter[c];
  17. String tString = String(tmpchr);
  18. strippedFilters += tString;
  19. strippedFilters += String(",");
  20. strippedFilters += tString.ToUpper(tString);
  21.  
  22. ++i;
  23. if (i < filtersCount-2)
  24. strippedFilters += String(";");
  25. }
  26. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement