mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r8688] Purpose:
h5dump new feature Description: add processing of tab characters (in the context of the new option process CR/LF) Solution: Platforms tested: linux solaris AIX Misc. update:
This commit is contained in:
parent
fabb5167ba
commit
435c8b2d7d
@ -4475,7 +4475,7 @@ static void gent_filters()
|
||||
hsize_t dims2[1]={2};
|
||||
hvl_t buf2[2];
|
||||
hsize_t dims3[1]={1};
|
||||
char buf3[]={"this is\n a string with three\n newline\n escape characters"};
|
||||
char buf3[]={"this is\n a string \twith three\n newline\n escape \tcharacters"};
|
||||
hsize_t dims4[1]={6};
|
||||
char buf4[6]={"abcdef"};
|
||||
hobj_ref_t buf5[5];
|
||||
|
@ -466,7 +466,10 @@ h5tools_print_char(h5tools_str_t *str, const h5dump_t *info, unsigned char ch)
|
||||
h5tools_str_append(str, "\\r");
|
||||
break;
|
||||
case '\t':
|
||||
h5tools_str_append(str, "\\t");
|
||||
if (info->do_lf)
|
||||
h5tools_str_append(str, "\t");
|
||||
else
|
||||
h5tools_str_append(str, "\\t");
|
||||
break;
|
||||
default:
|
||||
if (isprint(ch))
|
||||
|
Binary file not shown.
@ -4,7 +4,7 @@ Expected output for 'h5dump -e -d string tfilters.h5'
|
||||
HDF5 "tfilters.h5" {
|
||||
DATASET "string" {
|
||||
DATATYPE H5T_STRING {
|
||||
STRSIZE 57;
|
||||
STRSIZE 59;
|
||||
STRPAD H5T_STR_NULLTERM;
|
||||
CSET H5T_CSET_ASCII;
|
||||
CTYPE H5T_C_S1;
|
||||
@ -12,9 +12,9 @@ DATASET "string" {
|
||||
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }
|
||||
DATA {
|
||||
(0) "this is
|
||||
a string with three
|
||||
a string with three
|
||||
newline
|
||||
escape characters"
|
||||
escape characters"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user