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...@gmail.com> ha scritto:

 Oggetto: [Gambas-user] IsPunct
 A: gambas-user@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@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 

------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to