1
0

isalpharune 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. .TH ISALPHARUNE 2
  2. .SH NAME
  3. isalpharune, isbaserune, islowerrune, isspacerune, istitlerune, isupperrune, isdigitrune, tobaserune, tolowerrune, totitlerune, toupperrune \- Unicode character classes and cases
  4. .SH SYNOPSIS
  5. .B #include <u.h>
  6. .br
  7. .B #include <libc.h>
  8. .PP
  9. .B
  10. int isalpharune(Rune c)
  11. .PP
  12. .B
  13. int isbaserune(Rune c)
  14. .PP
  15. .B
  16. int islowerrune(Rune c)
  17. .PP
  18. .B
  19. int isspacerune(Rune c)
  20. .PP
  21. .B
  22. int istitlerune(Rune c)
  23. .PP
  24. .B
  25. int isupperrune(Rune c)
  26. .PP
  27. .B
  28. int isdigitrune(Rune c)
  29. .PP
  30. .B
  31. Rune tobaserune(Rune c)
  32. .PP
  33. .B
  34. Rune tolowerrune(Rune c)
  35. .PP
  36. .B
  37. Rune totitlerune(Rune c)
  38. .PP
  39. .B
  40. Rune toupperrune(Rune c)
  41. .SH DESCRIPTION
  42. These routines examine and operate on Unicode characters,
  43. in particular a subset of their properties as defined in the Unicode standard.
  44. Unicode defines some characters as alphabetic and specifies three cases:
  45. upper, lower, and title.
  46. Analogously to
  47. .IR ctype (2)
  48. for
  49. .SM ASCII\c
  50. ,
  51. these routines
  52. test types and modify cases for Unicode characters.
  53. The names are self-explanatory.
  54. .PP
  55. The case-conversion routines return the character unchanged if it has no case.
  56. .SH SOURCE
  57. .B /sys/src/libc/port/runetype.c
  58. .SH "SEE ALSO
  59. .IR ctype (2) ,
  60. .IR "The Unicode Standard" .