@param int $start

@return \Fubhy\GraphQL\Language\Token

@throws \Exception
340979
protected function readString($start)
    {
        $position = $start + 1;
        $chunk = $position;
        $length = $this->source->getLength();
        $body = $this->source->getBody();
        $code = NULL;
        $value = '';

        while (
            $position < $length &&
            ($code = $this->charCodeAt($position)) &&
            $code !== 34 &&
            $code !== 10 && $code !== 13 && $code !== 0x2028 && $code !== 0x2029
        ) {
            ++$position;

            if ($code === 92) { // \
                $value .= mb_substr($body, $chunk, $position - 1 - $chunk, 'UTF-8');
                $code = $this->charCodeAt($position);

                switch ($code) {
                    case 34:
                        $value .= '"';
                        break;
                    case 47:
                        $value .= '\/';
                        break;
                    case 92:
                        $value .= '\\';
                        break;
                    case 98:
                        $value .= '\b';
                        break;
                    case 102:
                        $value .= '\f';
                        break;
                    case 110:
                        $value .= '\n';
                        break;
                    case 114:
                        $value .= '\r';
                        break;
                    case 116:
                        $value .= '\t';
                        break;
                    case 117:
                        $charCode = $this->uniCharCode(
                            $this->charCodeAt($position + 1),
                            $this->charCodeAt($position + 2),
                            $this->charCodeAt($position + 3),
                            $this->charCodeAt($position + 4)
                        );

                        if ($charCode < 0) {
                            // @todo Throw proper exception.
                            throw new \Exception('Bad character escape sequence.');
                        }

                        $value .= $this->fromCharCode($charCode);
                        $position += 4;
                        break;
                    default:
                        // @todo Throw proper exception.
                        throw new \Exception('Bad character escape sequence.');
                }

                ++$position;
                $chunk = $position;
            }
        }

        if ($code !== 34) {
            // @todo Throw proper exception.
            throw new \Exception('Unterminated string.');
        }

        $value .= mb_substr($body, $chunk, $position - $chunk, 'UTF-8');
        return new Token(Token::STRING_TYPE, $start, $position + 1, $value);
    }
439983
public function setStart(DateTime $start)
    {
        if ($this->end && $start > $this->end) {
            throw new EventException(
                'New start comes after the end!',
                EventException::INVALID_DATES
            );
        }
        $this->start = clone $start;
        return $this;
    }
1275481
public function slice($start, $length = null)
    {
        $answer = new HArraySlice($this);
        return new static($answer->slice($start, $length));
    }
1035311
public static function fromCIDRPrefix($prefixSize)
    {
        if (!is_int($prefixSize)) {
            throw new \Exception(__METHOD__.' requires first param, $prefixSize, to be an integer');
        }

        if ($prefixSize < 1 || $prefixSize > 31) {
            throw new \Exception(__METHOD__.' requires first param, $prefixSize, to be CIDR prefix size with value between 1 and 31 (inclusive)');
        }

        return new self(bindec(str_repeat('1', $prefixSize).str_repeat('0', 32 - $prefixSize)));
    }
1206501
function start()
	{
		$originalProps = $this->props;		
		$response = new ET_Perform($this->authStub, $this->obj, 'start', $this->props);
		if ($response->status) {
			$this->lastTaskID = $response->results[0]->Task->ID;
		}
		$this->props = $originalProps;
		return $response;
	}
355609
public function begin()
    {
        $this->beginId++;
        $this->nowAffairId = $this->beginId;
        $this->startBeginTime = getMillisecond();
        return $this->beginId;
    }
787822
public function getServiceList($start = 0, $end = 5)
    {
        ValidationUtility::ensureInteger('$start', $start);
        ValidationUtility::ensureNotNegative('$start', $start);

        ValidationUtility::ensureInteger('$end', $end);
        ValidationUtility::ensureNotNegative('$end', $end);

        $queryParams = array(
            'start' => $start,
            'end'   => $end
        );

        return $this->callServiceOwnerGetApi(
            '\Authlete\Dto\ServiceListResponse::fromJson',
            self::$SERVICE_GET_LIST_API_PATH,
            $queryParams);
    }
853805
public static function makeToken($launch) {
        global $CFG;
        if ( ! isset($launch->link->id) ) return false;
        $token = $CFG->wwwroot . '::' . $launch->link->id . '::';
        $token .= isset($launch->context->id) ? $launch->context->id : 'no_context';
        $token .= '::';
        $token .= isset($launch->user->id) ? $launch->context->id : 'no_user';
        return $token;
    }
260837
public function create($start = NULL, Array $settings = []) : String
    {
        # The configuration arrays are merge.
        $settings = array_merge($this->config, $this->settings, $settings);

        # If the configuration is present, it is rearranged.
        if( ! empty($settings) )
        {
            $this->settings($settings);
        }

        # Gets information about which recording to start the paging process.
        $startRowNumber = $this->getStartRowNumber($start);

        # If the limit is set to 0, 1 is accepted.
        $this->limit = $this->limit === 0 ? 1 : $this->limit;
        
        # Generate pagination bar.
        if( $this->isPaginationBar() )
        {
            return $this->isBasicPaginationBar() ? $this->createBasicPaginationBar($startRowNumber) : $this->createAdvancedPaginationBar($startRowNumber);
        }

        return false;
    }
568064
public function show($start)
    {
        if (!$start) {
            if (!empty(config('app.project'))) {
                $this->line(config('app.project'));
            }
            if (!empty(config('app.owner'))) {
                $this->line('by '.config('app.owner'));
            }
            $this->line('');
            $this->line('***********');
            $this->line('Based on : ');
        } else {
            $this->line('');
        }

        $version = Application::getVersion()->console();
        $this->question('Vinala ', true);
        $this->line("Framework v$version");
        $this->line('-------');
        $this->line(Application::getVersion()->kernel());
        $this->line('-------');
        $this->write('created by Youssef Had (');
        $this->question('youssefhad2@gmail.com - www.facebook.com/yussef.had', true);
        $this->line(')');
        $this->write('Website ');
        $this->question('www.github.com/vinala/vinala');
        $this->line('');
    }
922752
public function setAccessToken($token)
    {
        if ($token instanceof Token\TokenInterface) {
            $this->rawToken = $token;
        } else {
            $this->rawToken = is_array($token) ?
                $this->tokenFactory($token) :
                $this->tokenFactory(['access_token' => $token]);
        }

        if ($this->rawToken === null) {
            throw new Exception\OAuth2Exception("setAccessToken() takes a string, array or TokenInterface object");
        }

        return $this;
    }
28022
public function getToken($token, $ip = null, $userAgent = null)
    {
        $query = $this->getTokenQuery($token, $ip, $userAgent);

        return $this->findOneWith($query);
    }
1339526
private function buildStartParameter() {
        $parameter = new Swagger\Parameter();
        $parameter->setName('start');
        $parameter->setDescription('Which record to start retrieving results from in the database. Defaults to 0 which is the first record. Optional.');
        $parameter->setParamType('query');
        $parameter->setType('integer');

        return $parameter;
    }
153750
protected function location($start)
    {
        if (!empty($this->options['noLocation'])) {
            return NULL;
        }

        if (!empty($this->options['noSource'])) {
            return new Location($start, $this->cursor);
        }

        return new Location($start, $this->cursor, $this->source);
    }
731800
public function getStart() : int {
        $child = $this->getChildNodesAndTokens()->current();
        if ($child instanceof Node) {
            return $child->getStart();
        } elseif ($child instanceof Token) {
            return $child->start;
        }
        throw new \Exception("Unknown type in AST");
    }
510223
public function getStartDate() : ?int 
    {
        if ( ! $this->hasStartDate()) {
            $this->setStartDate($this->getDefaultStartDate());
        }
        return $this->startDate;
    }
201731
public static function start($startToken = 'cygnite_start')
    {
        if (!defined('MEMORY_START_POINT')):
            define('MEMORY_START_POINT', self::getMemorySpace());
        self::$blocks[$startToken] = self::getTime();
        endif;
    }