original_string: function validate($value, $options = null)
      {
          $length = core_text::strlen($value);
          switch ($this->name) {
              case 'minlength': return ($length >= $options);
              case 'maxlength': return ($length <= $options);
              default:          return ($length >= $options[0] && $length <= $options[1]);
          }
      }
code: function validate($value, $options = null)
      {
          $length = core_text::strlen($value);
          switch ($this->name) {
              case 'minlength': return ($length >= $options);
              case 'maxlength': return ($length <= $options);
              default:          return ($length >= $options[0] && $length <= $options[1]);
          }
      }
code_tokens: function validate ( $ value , $ options = null ) { $ length = core_text :: strlen ( $ value ) ; switch ( $ this -> name ) { case 'minlength' : return ( $ length >= $ options ) ; case 'maxlength' : return ( $ length <= $ options ) ; default : return ( $ length >= $ options [ 0 ] && $ length <= $ options [ 1 ] ) ; } }
docstring: Validates a value using a range comparison
  
  @param     string    $value      Value to be checked
  @param     mixed     $options    Int for length, array for range
  @access    public
  @return    boolean   true if value is valid
docstring_tokens: Validates a value using a range comparison