utils.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. int
  28. strincmp(const char *, const char *, const unsigned int);
  29. bool
  30. strstrin(const char *, const char *, unsigned int);
  31. int *
  32. GetConnected();
  33. int *
  34. GetNPCs();
  35. char *
  36. GetNames();
  37. bool
  38. IsPlayerConnected(int playerid);
  39. bool
  40. IsPlayerNPC(int playerid);
  41. char *
  42. GetPlayerName(int playerid);
  43. void
  44. TempDelimiter(char * ch);
  45. void
  46. RestoreDelimiter();
  47. bool
  48. IsDelimiter(char ch);
  49. bool
  50. InitialiseDelimiter();
  51. bool
  52. ResetDelimiter();
  53. bool
  54. IsDefaultDelimiter();
  55. bool
  56. IsStringEnd(char ch);
  57. bool
  58. AddDelimiter(char ch);
  59. bool
  60. AddDelimiters(char * ch);
  61. bool
  62. AddDelimiter(char ch);
  63. bool
  64. IsWhitespace(char ch);
  65. bool
  66. IsSpacer(char ch);
  67. bool
  68. IsEnd(char ch);
  69. void
  70. SkipSpacer(char ** input);
  71. void
  72. SkipOneSpacer(char ** input);
  73. void
  74. FindSpacer(char ** input);
  75. void
  76. FindDelimiter(char ** input);
  77. bool
  78. GetReturn(char ** input);
  79. bool
  80. GetReturnDefault(char ** input);
  81. void
  82. SkipWhitespace(char ** input);
  83. bool
  84. strichecks(char * st1, const char * st2);