01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
void
syck_emitter_escape( SyckEmitter *e, char *src, long len )
{
int i;
for( i = 0; i < len; i++ )
{
if( (src[i] < 0x20) || (0x7E < src[i]) )
void syck_emit_scalar( SyckEmitter *e, char *tag, enum scalar_style force_style, int force_indent, int force_width,
char keep_nl, char *str, long len )
/*
* Basic printable test for LATIN-1 characters.
*/
int
syck_scan_scalar( int req_width, char *cursor, long len )
if ( ! ( cursor[i] == 0x9 ||
cursor[i] == 0xA ||
cursor[i] == 0xD ||
( cursor[i] >= 0x20 && cursor[i] <= 0x7E ) )
) {
flags |= SCAN_NONPRINT;
}