[Gambas-user] R: IsPunct

Ru Vuott vuott at ...325...
Sat Jan 31 17:52:28 CET 2015


Adde exemplum:


' int isprint(int c)
Private Extern isprint(num As Integer) As Integer In "libc:6"

Public Sub Main()

  Dim s As String = "Gam\nbas"
  Dim bb As Byte[]
 
  bb = Byte[].FromString(s)
  
    For Each s In bb
      Print CBool(isprint(s))
    Next
 
End







--------------------------------------------
Sab 31/1/15, Fabien Bodard <gambas.fr at ...626...> ha scritto:

 Oggetto: [Gambas-user] IsPunct
 A: gambas-user at lists.sourceforge.net
 Data: Sabato 31 gennaio 2015, 17:29
 
 IsPunct Tests if a string contains
 only printable non-alphanumeric characters.
 
 
 Is there a function that return if a string contain only
 printable characters ?
 
 -- 
 Fabien Bodard
 
 ------------------------------------------------------------------------------
 Dive into the World of Parallel Programming. The Go Parallel
 Website,
 sponsored by Intel and developed in partnership with
 Slashdot Media, is your
 hub for all things parallel software development, from
 weekly thought
 leadership blogs to news, videos, case studies, tutorials
 and more. Take a
 look and join the conversation now. http://goparallel.sourceforge.net/
 _______________________________________________
 Gambas-user mailing list
 Gambas-user at lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list