syncbase: syncQL: add Split and Len functions.

Split: splits a string into a list of strings based on a separator.
       Empty separator splits on UTF-8 sequences.
       Just calls string.Split.
       ex: Split("abc.def", ".")

Len: returns the length of a string or the number of entries in
     arrays, lists, maps and sets.
     returns 0 for nil
     returns error (resolves to nil) for all other types
     ex: Len("abc")

In addition to the above, the Type() function collapsed by a couple of lines
and the db argument is now passed into functions (for the context
in creating verrors).

MultiPart: 1/2

Change-Id: Icead1bffbb785334b9015562d611e07c9996c7a5
9 files changed
tree: f60e78ecc2fe7f07ebf653da7d2606b0717b4731
  1. v23/
  2. x/
  3. .gitignore
  4. AUTHORS
  5. CONTRIBUTORS
  6. LICENSE
  7. PATENTS
  8. VERSION