module Mapred_fields:Access to record fieldssig..end
val text_field_range : ?pos:int ->
?len:int -> ?sep:char -> ?field:int -> ?num:int -> string -> int * intlet (p,l) = text_field_range s: Extracts a field from s, and returns
in p the byte position where the field begins, and in l the
byte length. This means one can get the contents of the field with
String.sub s p l.
By default, the first field is selected.
If several fields are extracted, p is the position where the
first field starts, and p+l-1 is the position where the last
field ends.
pos and len: These arguments may restrict the part of s
where to extract fieldssep: The separator character, by default TABfield: Which field to extract. This number counts from 1.
Defaults to 1.num: How many fields to extract. Defaults to 1.val text_field : ?pos:int ->
?len:int -> ?sep:char -> ?field:int -> ?num:int -> string -> stringtext_field_range, but returns the contents and not the rangeval text_fields_range : ?pos:int ->
?len:int -> ?sep:char -> ?field:int -> ?num:int -> string -> (int * int) listtext_field_range, but returns the ranges (p,l) for each
field separatelyval text_fields : ?pos:int ->
?len:int -> ?sep:char -> ?field:int -> ?num:int -> string -> string listtext_field_range, but returns the contents of each fieldval var_field_range : ?pos:int -> ?len:int -> ?field:int -> string -> int * intlet (p,l) = var_field_range s: Extracts a field from s, and returns
in p the byte position where the field begins, and in l the
byte length. This means one can get the contents of the field with
String.sub s p l.
By default, the first field is selected.
pos and len: These arguments may restrict the part of s
where to extract fieldsfield: Which field to extract. This number counts from 1.
Defaults to 1.val var_field : ?pos:int -> ?len:int -> ?field:int -> string -> stringvar_field_range, but returns the contents and not the rangeval var_fields_range : ?pos:int -> ?len:int -> ?field:int -> ?num:int -> string -> (int * int) listvar_field_range, but returns the ranges (p,l) for each
field separatelyval var_fields : ?pos:int -> ?len:int -> ?field:int -> ?num:int -> string -> string listvar_field_range, but returns the contents of each fieldval var_concat : string list -> stringval escape : string -> stringval unescape : string -> stringval encode_alt64 : string -> stringval decode_alt64 : string -> stringThe alphabet is chosen such that
alt64(x) > alt64(y) <=> x > y