src/Peach/DF/JsonCodec/StringExpr.php
private function validateCodePoint(Context $context)
    {
        $codePoint = $context->currentCodePoint();
        if (0x20 <= $codePoint) {
            return;
        }
        
        $hex = dechex($codePoint);
        $num = (0x10 <= $codePoint) ? $hex : "0" . $hex;
        throw $context->createException("Unicode code point %x{$num} is not allowed for string");
    }
private function validateCodePoint(Context $context)
    {
        $codePoint = $context->currentCodePoint();
        if (0x20 <= $codePoint) {
            return;
        }
        
        $hex = dechex($codePoint);
        $num = (0x10 <= $codePoint) ? $hex : "0" . $hex;
        throw $context->createException("Unicode code point %x{$num} is not allowed for string");
    }
現在の文字が Unicode 符号点 %x20 以上であるかどうか検査します.
不正な文字の場合は DecodeException をスローします.

@param  Context $context 解析対象の Context
@throws DecodeException  現在の文字が %x00-1F の範囲にある場合