data.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Version: MPL 1.1
  3. *
  4. * The contents of this file are subject to the Mozilla Public License Version
  5. * 1.1 (the "License"); you may not use this file except in compliance with
  6. * the License. You may obtain a copy of the License at
  7. * http://www.mozilla.org/MPL/
  8. *
  9. * Software distributed under the License is distributed on an "AS IS" basis,
  10. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11. * for the specific language governing rights and limitations under the
  12. * License.
  13. *
  14. * The Original Code is the sscanf 2.0 SA:MP plugin.
  15. *
  16. * The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  17. * Portions created by the Initial Developer are Copyright (C) 2010
  18. * the Initial Developer. All Rights Reserved.
  19. *
  20. * Contributor(s):
  21. *
  22. * Special Thanks to:
  23. *
  24. * SA:MP Team past, present and future
  25. */
  26. #pragma once
  27. void
  28. RestoreOpts(int);
  29. char
  30. GetSingleType(char ** format);
  31. char *
  32. GetMultiType(char ** format);
  33. char *
  34. GetMultiType(char ** format);
  35. unsigned int
  36. GetUserString(char * string, char ** end);
  37. int
  38. GetDec(char ** const input);
  39. int
  40. GetOct(char ** const input);
  41. int
  42. GetHex(char ** const input);
  43. int
  44. GetBool(char ** const input);
  45. int
  46. GetNumber(char ** const input);
  47. bool
  48. GetLogical(char ** const input);
  49. void
  50. SkipDefault(char ** const str);
  51. void
  52. SkipDefaultEx(char ** const data);
  53. void
  54. SkipLength(char ** const input);
  55. int
  56. GetLength(char ** const input, bool error);
  57. bool
  58. FindDefaultStart(char ** const str);