regex_split   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/adt.xtm

Implementation

(bind-func regex_split
  (lambda (regex str)
    (let ((a:i8* (salloc 2048))
          (b:i8* (salloc 2048)))
      (sprintf a "")
      (sprintf b "")
      (rsplit regex (cstring str) a b)
      (append (list (if (> (strlen a) 0)
                        (String a) (String str)))
              (if (> (strlen b) 0)
                  (regex_split regex (String b))
                  null)))))


Back to Index

Similar Entries

  • LR_split    xtlang
  • Widget_set_split    xtlang
  • Widget_split    xtlang
  • Widget_split_horizontal_p    xtlang
  • Widget_split_vertical_p    xtlang
  • Widget_swap_split_orientation    xtlang
  • aiProcess_SplitByBoneCount    scheme
  • aiProcess_SplitLargeMeshes    scheme
  • impc:ir:regex-structs-or-atoms    scheme
  • impc:ir:regex-tc-or-a    scheme
  • impc:ir:split-and-decode-poly-adhoc-name    scheme
  • impc:ti:split-namedfunc    scheme
  • impc:ti:split-namedtype    scheme
  • regex:replace-all    scheme
  • regex:replace-everything    scheme
  • regex:type-split    scheme
  • regex_match    xtlang
  • regex_match    xtlang
  • regex_match    xtlang
  • regex_match    xtlang
  • regex_matches    xtlang
  • regex_matches    xtlang
  • regex_matches    xtlang
  • regex_matches    xtlang
  • regex_matches    xtlang
  • regex_matches    xtlang
  • regex_replace    xtlang
  • regex_replace    xtlang
  • regex_replace    xtlang
  • regex_replace    xtlang
  • regex_replace_all    xtlang
  • regex_replace_all    xtlang
  • regex_replace_all    xtlang
  • regex_replace_all    xtlang
  • regex_split    xtlang
  • split-by    scheme
  • split-clock-time    scheme
  • splitjoin    xtlang