You are here

protected function MigrateJSONReader::getNonBlank in Migrate 7.2

Obtain the next non-whitespace character from the JSON file.

Return value

string The next non-whitespace character, or FALSE on end-of-file.

1 call to MigrateJSONReader::getNonBlank()
MigrateJSONReader::next in plugins/sources/json.inc
Implementation of Iterator::next().

File

plugins/sources/json.inc, line 249
Support for migration from JSON sources.

Class

MigrateJSONReader
An iterator over a JSON file. As is, this assumes that the file is structured as an array of objects,…

Code

protected function getNonBlank() {
  while (($c = fgetc($this->fileHandle)) !== FALSE && trim($c) == '') {
  }
  return $c;
}