protected function positionOfToc() {

		$search = array_keys( $this->manifest );

		if ( false === $this->frontMatterLastPos ) {

			$array_pos = array_search( 'copyright', $search, true );
			if ( false === $array_pos ) {
				$array_pos = -1;
			}
		} else {

			$array_pos = -1;
			$preg = '/^front-matter-' . sprintf( '%03s', $this->frontMatterLastPos ) . '$/';
			foreach ( $search as $key => $val ) {
				if ( preg_match( $preg, $val ) ) {
					$array_pos = $key;
					break;
				}
			}
		}

		return $array_pos;
	}
protected function positionOfToc() {

		$search = array_keys( $this->manifest );

		if ( false === $this->frontMatterLastPos ) {

			$array_pos = array_search( 'copyright', $search, true );
			if ( false === $array_pos ) {
				$array_pos = -1;
			}
		} else {

			$array_pos = -1;
			$preg = '/^front-matter-' . sprintf( '%03s', $this->frontMatterLastPos ) . '$/';
			foreach ( $search as $key => $val ) {
				if ( preg_match( $preg, $val ) ) {
					$array_pos = $key;
					break;
				}
			}
		}

		return $array_pos;
	}
protected function positionOfToc ( ) { $ search = array_keys ( $ this -> manifest ) ; if ( false === $ this -> frontMatterLastPos ) { $ array_pos = array_search ( 'copyright' , $ search , true ) ; if ( false === $ array_pos ) { $ array_pos = - 1 ; } } else { $ array_pos = - 1 ; $ preg = '/^front-matter-' . sprintf ( '%03s' , $ this -> frontMatterLastPos ) . '$/' ; foreach ( $ search as $ key => $ val ) { if ( preg_match ( $ preg , $ val ) ) { $ array_pos = $ key ; break ; } } } return $ array_pos ; }
Determine position of TOC based on Chicago Manual Of Style.

@return int
Determine position of TOC based on Chicago Manual Of Style .