League\CommonMark\Cursor::isBlank PHP Method

isBlank() public method

Whether the remainder is blank
public isBlank ( ) : boolean
return boolean
    public function isBlank()
    {
        return $this->getFirstNonSpacePosition() === $this->length;
    }

Usage Example

 public function matchesNextLine(Cursor $cursor)
 {
     if ($cursor->isBlank() && ($this->type === self::TYPE_6_BLOCK_ELEMENT || $this->type === self::TYPE_7_MISC_ELEMENT)) {
         return false;
     }
     return true;
 }
All Usage Examples Of League\CommonMark\Cursor::isBlank