token.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. Copyright 1999 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License. You may
  5. obtain a copy of the License at
  6. https://imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. MagickCore token methods.
  13. */
  14. #ifndef MAGICKCORE_TOKEN_H
  15. #define MAGICKCORE_TOKEN_H
  16. #if defined(__cplusplus) || defined(c_plusplus)
  17. extern "C" {
  18. #endif
  19. /*
  20. Typedef declarations.
  21. */
  22. typedef struct _TokenInfo
  23. TokenInfo;
  24. extern MagickExport int
  25. Tokenizer(TokenInfo *,const unsigned int,char *,const size_t,const char *,
  26. const char *,const char *,const char *,const char,char *,int *,char *);
  27. extern MagickExport MagickBooleanType
  28. GlobExpression(const char *magick_restrict,const char *magick_restrict,
  29. const MagickBooleanType) magick_attribute((__pure__)),
  30. IsGlob(const char *) magick_attribute((__pure__)),
  31. IsMagickTrue(const char *) magick_attribute((__pure__));
  32. extern MagickExport size_t
  33. GetNextToken(const char *magick_restrict,const char **magick_restrict,
  34. const size_t,char *magick_restrict) magick_hot_spot;
  35. extern MagickExport TokenInfo
  36. *AcquireTokenInfo(void),
  37. *DestroyTokenInfo(TokenInfo *);
  38. #if defined(__cplusplus) || defined(c_plusplus)
  39. }
  40. #endif
  41. #endif