deadmarshal

Untitled

Aug 30th, 2025
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. pub fn iscntrl(c: String) -> Bool {
  2. case c {
  3. "\u{0000}"
  4. | "\u{0001}"
  5. | "\u{0002}"
  6. | "\u{0003}"
  7. | "\u{0004}"
  8. | "\u{0005}"
  9. | "\u{0006}"
  10. | "\u{0007}"
  11. | "\u{0008}"
  12. | "\u{0009}"
  13. | "\u{0010}"
  14. | "\u{0011}"
  15. | "\u{0012}"
  16. | "\u{0013}"
  17. | "\u{0014}"
  18. | "\u{0015}"
  19. | "\u{0016}"
  20. | "\u{0017}"
  21. | "\u{0018}"
  22. | "\u{0019}"
  23. | "\u{0020}"
  24. | "\u{0030}"
  25. | "\u{0031}"
  26. | "\u{0127}" -> True
  27. _ -> False
  28. }
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment