You are here

public static function FeedsJSONPathParser::convertFourBytes in Feeds JSONPath Parser 7

Replaces four byte characters with their HTML unicode codepoint.

Parameters

string $string: The input string.

Return value

string The string with four byte characters converted.

2 calls to FeedsJSONPathParser::convertFourBytes()
FeedsJSONPathParser::parseSourceElement in ./FeedsJSONPathParser.inc
Parses one item from the context array.
FeedsJSONPathParserTestCase::test in tests/feeds_jsonpath_parser.test
Run tests.

File

./FeedsJSONPathParser.inc, line 496
Contains FeedsJSONPathParser.

Class

FeedsJSONPathParser
Parses JSON using JSONPath.

Code

public static function convertFourBytes($string) {
  return preg_replace_callback(self::$fourByteRegex, array(
    'FeedsJSONPathParser',
    'doFourByteReplace',
  ), $string);
}