-
Notifications
You must be signed in to change notification settings - Fork 86
string contains
Chris Petersen edited this page Oct 16, 2014
·
1 revision
string-contains return the index of the first occurrence of pattern in str.
Parameter | Description |
---|---|
str | Input string |
pattern | The pattern string to look for |
Example 1: Helper function in redcap module to split return string into header and body
(define (redcap:split-headerbody str)
(set! a (string->list str))
(let ((pos (string-contains str "\r\n\r\n")))
(if pos
(list (substring str 0 pos) (substring str (+ pos 4) (string-length str)))
(list str (list)))
))
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip