src/Mpdf.php
function _moveToPrevChar(&$contentctr, &$charctr, $content)
	{
		$lastchar = false;
		$charctr--;
		while ($charctr < 0) { // go back to previous $content[]
			$contentctr--;
			if ($contentctr < 0) {
				return false;
			}
			if ($this->usingCoreFont) {
				$charctr = strlen($content[$contentctr]) - 1;
			} else {
				$charctr = mb_strlen($content[$contentctr], $this->mb_enc) - 1;
			}
		}
		if ($this->usingCoreFont) {
			$lastchar = $content[$contentctr][$charctr];
		} else {
			$lastchar = mb_substr($content[$contentctr], $charctr, 1, $this->mb_enc);
		}
		return $lastchar;
	}
function _moveToPrevChar(&$contentctr, &$charctr, $content)
	{
		$lastchar = false;
		$charctr--;
		while ($charctr < 0) { // go back to previous $content[]
			$contentctr--;
			if ($contentctr < 0) {
				return false;
			}
			if ($this->usingCoreFont) {
				$charctr = strlen($content[$contentctr]) - 1;
			} else {
				$charctr = mb_strlen($content[$contentctr], $this->mb_enc) - 1;
			}
		}
		if ($this->usingCoreFont) {
			$lastchar = $content[$contentctr][$charctr];
		} else {
			$lastchar = mb_substr($content[$contentctr], $charctr, 1, $this->mb_enc);
		}
		return $lastchar;
	}
function _moveToPrevChar ( & $ contentctr , & $ charctr , $ content ) { $ lastchar = false ; $ charctr -- ; while ( $ charctr < 0 ) { // go back to previous $content[] $ contentctr -- ; if ( $ contentctr < 0 ) { return false ; } if ( $ this -> usingCoreFont ) { $ charctr = strlen ( $ content [ $ contentctr ] ) - 1 ; } else { $ charctr = mb_strlen ( $ content [ $ contentctr ] , $ this -> mb_enc ) - 1 ; } } if ( $ this -> usingCoreFont ) { $ lastchar = $ content [ $ contentctr ] [ $ charctr ] ; } else { $ lastchar = mb_substr ( $ content [ $ contentctr ] , $ charctr , 1 , $ this -> mb_enc ) ; } return $ lastchar ; }
Get previous character and move pointers
Get previous character and move pointers