function search ($pattern, $from = 0, &$match = null)
  {
    self::toUnicodeRegex ($pattern);
    if (preg_match ($pattern, $this->S, $m, PREG_OFFSET_CAPTURE)) {
      list ($match, $ofs) = $m[0];
      return $ofs;
    }
    return false;
  }