regex_matches   xtlang


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

Implementation

(bind-func regex_matches
  (lambda (regex:i8* str:i8* maxnum:i64)
    (let ((slen:i64 (strlen str))
          (results:i8** (salloc maxnum))
          (resdata:i8* (salloc (* slen maxnum)))
          (result:String* null) (i:i64 0) (num 0))
      (dotimes (i maxnum) (pset! results i (pref-ptr resdata (* i slen))))
      (set! num (rmatches regex str results maxnum))
      (if (> num 0)
          (map (lambda (i:i64) (Str (pref results i)))
               (range 0 num))
          null))))


Back to Index

Similar Entries

  • get-true-matches    scheme    /digego/extempore/tree/v0.8.9/libs/core/pattern.xtm
  • impc:ir:regex-structs-or-atoms    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:regex-tc-or-a    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • p:if-matches    scheme    /digego/extempore/tree/v0.8.9/libs/base/pattern.xtm
  • p:matches?    scheme    /digego/extempore/tree/v0.8.9/libs/base/pattern.xtm
  • regex:replace-all    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • regex:replace-everything    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • regex:type-split    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • regex_match    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_match    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_match    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_match    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_matches    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_matches    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_matches    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_matches    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_matches    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_replace    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_replace    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_replace    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_replace    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_split    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_split    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm