home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / pippy-0.6beta-src.tar.gz / pippy-0.6beta-src.tar / pippy-0.6beta-src / src / Include / other / stringobject_c.h < prev    next >
C/C++ Source or Header  |  2000-12-21  |  4KB  |  59 lines

  1. #ifndef STRINGOBJECT_C_H
  2. #define STRINGOBJECT_C_H
  3.  
  4. #include "proto_defs.h"
  5. /* previously forward declarations stripped from stringobject.c */
  6.  
  7.  
  8. static int string_contains Py_PROTO((PyObject *, PyObject *)) SEG_STRINGOBJECT_C;
  9. static int string_buffer_getcharbuf Py_PROTO((PyStringObject *,int,const char **)) SEG_STRINGOBJECT_C;
  10. static PyObject *split_whitespace Py_PROTO((char *,int,int)) SEG_STRINGOBJECT_C;
  11. static PyObject *string_split Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  12. static PyObject *string_join Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  13. static long string_find_internal Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  14. static PyObject *string_find Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  15. static PyObject *string_index Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  16. static long string_rfind_internal Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  17. static PyObject *string_rfind Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  18. static PyObject *string_rindex Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  19. static PyObject *do_strip Py_PROTO((PyStringObject *, PyObject *, int)) SEG_STRINGOBJECT_C;
  20. static PyObject *string_strip Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  21. static PyObject *string_lstrip Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  22. static PyObject *string_rstrip Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  23. static PyObject *string_lower Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  24. static PyObject *string_upper Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  25. static PyObject *string_capitalize Py_PROTO((PyStringObject *, PyObject *args)) SEG_STRINGOBJECT_C;
  26. static PyObject *string_count Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  27. static PyObject *string_swapcase Py_PROTO((PyStringObject *,PyObject *)) SEG_STRINGOBJECT_C;
  28. static PyObject *string_translate Py_PROTO((PyStringObject *,PyObject *)) SEG_STRINGOBJECT_C;
  29. static int mymemfind Py_PROTO((char *,int,char *,int)) SEG_STRINGOBJECT_C;
  30. static int mymemcnt Py_PROTO((char *,int,char *,int)) SEG_STRINGOBJECT_C;
  31. static char *mymemreplace Py_PROTO((char *,int,char *,int,char *,int,int,int *)) SEG_STRINGOBJECT_C;
  32. static PyObject *string_replace Py_PROTO((PyStringObject *,PyObject *)) SEG_STRINGOBJECT_C;
  33. static PyObject *string_startswith Py_PROTO((PyStringObject *,PyObject *)) SEG_STRINGOBJECT_C;
  34. static PyObject *string_endswith Py_PROTO((PyStringObject *, PyObject *)) SEG_STRINGOBJECT_C;
  35. static PyObject *getnextarg Py_PROTO((PyObject *,int,int *)) SEG_STRINGOBJECT_C;
  36. #ifndef WITHOUT_FLOAT
  37. static int formatfloat Py_PROTO((char *,int,int,int,PyObject *)) SEG_STRINGOBJECT_C;
  38. #endif /* WITHOUT_FLOAT */
  39. static int formatint Py_PROTO((char *,int,int,int,PyObject *)) SEG_STRINGOBJECT_C;
  40. static int formatchar Py_PROTO((char *, PyObject *)) SEG_STRINGOBJECT_C;
  41.  
  42.  
  43. static PyObject *string_concat Py_PROTO((register PyStringObject *a, register PyObject *bb)) SEG_STRINGOBJECT_C;
  44. INQUIRY_PROTO(string_length, PyStringObject) SEG_STRINGOBJECT_C;
  45. INTARGFUNC_PROTO(string_repeat, PyStringObject) SEG_STRINGOBJECT_C;
  46. INTARGFUNC_PROTO(string_item, PyStringObject) SEG_STRINGOBJECT_C;
  47. INTINTARGFUNC_PROTO(string_slice, PyStringObject) SEG_STRINGOBJECT_C;
  48. static int string_buffer_getreadbuf Py_PROTO((PyStringObject *self, int index, const void **ptr)) SEG_STRINGOBJECT_C;
  49. static int string_buffer_getwritebuf Py_PROTO((PyStringObject *self, int index, const void **ptr)) SEG_STRINGOBJECT_C;
  50.  
  51. GETSEGCOUNTPROC_PROTO(string_buffer_getsegcount, PyStringObject) SEG_STRINGOBJECT_C;
  52. DESTRUCTOR_PROTO(string_dealloc, PyObject) SEG_STRINGOBJECT_C;
  53. PRINTFUNC_PROTO(string_print, PyStringObject) SEG_STRINGOBJECT_C;
  54. CMPFUNC_PROTO(string_compare, PyStringObject) SEG_STRINGOBJECT_C;
  55. REPRFUNC_PROTO(string_repr, PyStringObject) SEG_STRINGOBJECT_C;
  56. HASHFUNC_PROTO(string_hash, PyStringObject) SEG_STRINGOBJECT_C;
  57.  
  58. #endif /* STRINGOBJECT_C_H */
  59.