/* * call-seq: * sarray.start -> Fixnum * * Tells you which index in the suffix array is the longest suffix (also known as the * start of the source string). If you want to get the beginning of the source string * in a round about way you would do this: * * source = "abracadabra" * sa = SuffixArray.new source * first = source[sa.array[sa.start]]] * * Remember that the start is the index into the suffix array where the source starts, * not an index into the source string (that would just be 0). */ static VALUE SuffixArray_suffix_start(VALUE self) { return rb_iv_get(self, "@suffix_start"); }