Retrieve the maximum number of characters allowed.

@return integer
977068
public function maxLength()
    {
        if ($this->maxLength === null) {
            $this->maxLength = $this->defaultMaxLength();
        }

        return $this->maxLength;
    }
777248
public function getLiteralLength()
    {
        if ($this->_stream->substring(-1, 1) === '}') {
            $literal_data = $this->_stream->getString(
                $this->_stream->search('{', true) - 1
            );
            $literal_len = substr($literal_data, 2, -1);

            if (is_numeric($literal_len)) {
                return array(
                    'binary' => ($literal_data[0] === '~'),
                    'length' => intval($literal_len)
                );
            }
        }

        return null;
    }
334673
private static function getUploadMaxFileSizeInBytes() {
    $val = trim(ini_get('upload_max_filesize'));
    $unit = strtolower(substr($val, -1));
    switch ($unit) {
      case 'g':
        $val *= 1024;
        // Fall through
      case 'm':
        $val *= 1024;
        // Fall through
      case 'k':
        $val *= 1024;
        break;
    }
    return intval($val);
  }
831338
public function getLength()
        {
        	if(!$this->_hasGetLen) {
        		$this->_hasGetLen = true;
		        $this->_length = $this->_redis->llen($this->_key);
	        }
                return $this->_length;
        }
720599
public function max()
    {
        if (!isset($this->meta['max'])) {
            $this->meta['max'] = (int) @max($this->get());
        }

        return $this->meta['max'];
    }
112271
public function getMaxId()
    {
        $column = $this->getPk();

        return $this->db->select($column)
                        ->from(static::getTableName())
                        ->orderBy($column)
                        ->desc()
                        ->limit(1)
                        ->query($column);
    }
211652
public function maxlength($length = null, $addFilter = true, $utf8 = true)
    {
        if ($addFilter) {
            $this->addFilter(new MaxLengthFilter($length, $utf8));
        }

        return $this->attr('maxlength', $length);
    }
1245028
protected function getMaximumRequirement()
    {
        $maximumLength = $this->config->get('concrete.user.password.maximum');

        return $maximumLength ? $this->app->make(MaximumLengthValidator::class, [$maximumLength]) : null;
    }
315692
public function getBodyWrapLength(): int
    {
        if (count($this->commitMessage) < 3) {
            return 0;
        }

        $body = array_slice($this->commitMessage, 2);
        $longestLineLength = 0;

        foreach ($body as $line) {
            if (strlen($line) > $longestLineLength) {
                $longestLineLength = strlen($line);
            }
        }

        return $longestLineLength;
    }
1168662
public function parseLimit()
	{
		if(!isset($this->operationOption['limit'],$this->operationOption['limit'][0]))
		{
			return '';
		}
		return 'limit ' . $this->operationOption['limit'][0] . (isset($this->operationOption['limit'][1]) ? (',' . $this->operationOption['limit'][1]) : '');
	}
910859
public function getMaxAllowedPacket()
    {
        if ($this->maxAllowedPacket === null) {
            $statement = $this->prepare('SELECT @@global.max_allowed_packet');
            $statement->execute();

            $this->maxAllowedPacket = (int) $statement->fetchColumn();
        }

        return $this->maxAllowedPacket;
    }
88494
public function getLimit()
    {
        $limit = $this->request->get('!limit');

        if (is_null($limit) && !is_null($this->collection->option('limit'))) {
            $limit = $this->collection->option('limit');
        }

        return $limit;
    }
475826
private function getRequestLimitHeader()
  {
    $headers = array();
    $client  = $this->getClient();

    if ( ! is_null($client)) {
      $headers['X-Rate-Limit-Limit']   = $client->request_limit;
      $headers['X-Rate-Limit-Remaining'] = $client->request_limit - $client->current_total_request;
      $headers['X-Rate-Limit-Reset']   = strtotime($client->request_limit_until) - time();
    }

    unset($client);

    return $headers;
  }
751636
public function getLength()
    {
        if (!$this->container) {
            return 0;
        }

        $count = count($this->container);
        $keys = array_keys($this->container);
        return (array_keys($this->container) === range(0, $count - 1))
            ? $count
            : max($keys);
    }
671106
public function getMaxLineWidth()
    {
        $m = $this->getMargins();
        if ($this->getRTL()) {
            return ($this->getRemainingWidth() + $m['right']);
        }

        return ($this->getRemainingWidth() + $m['left']);
    }
80875
private function isLengthValid()
    {
        $countryCode = $this->getCountryCode();
        $validLength = static::COUNTRY_CODE_LENGTH + static::CHECKSUM_LENGTH + static::$ibanFormatMap[$countryCode][0];

        return strlen($this->iban) === $validLength;
    }
1047906
public function getLimit()
    {
        if ($this->offset && $this->limit) {
            return $this->offset . ',' . $this->limit;
        }

        return (string)$this->limit;
    }