7 #ifndef EPT_CORE_DESKTOPFILE_H
8 #define EPT_CORE_DESKTOPFILE_H
19 typedef std::map< std::string, Entry >
EntryMap;
27 typedef std::map< std::string, Group >
GroupMap;
34 std::string spaces =
"";
char c;
bool started =
false;
38 while ( i.peek() != EOF ) {
40 if ( !started && c ==
'\n' )
46 if ( !started && c ==
'#' ) {
47 while ( i.peek() != EOF && i.get() !=
'\n' )
61 bool backslash =
false;
63 while ( i.peek() != EOF ) {
70 if ( !started && isspace( c ) )
74 if ( c ==
'\\' ) e.
value +=
'\\';
75 else if ( c ==
'n' ) e.
value +=
'\n';
76 else if ( c ==
't' ) e.
value +=
'\t';
77 else if ( c ==
'r' ) e.
value +=
'\r';
78 else if ( c ==
's' ) e.
value +=
' ';
94 bool started =
false;
char c;
96 while ( i.peek() != EOF ) {
98 if ( !started && isspace( c ) )
100 if ( !started && c ==
'#' ) {
101 while( i.peek() != EOF && i.get() !=
'\n' )
105 if ( !started && c ==
'[' ) {
109 if ( started && c ==
']' ) {
110 while( i.peek() != EOF && i.get() !=
'\n' )
116 while ( i.peek() != EOF ) {
126 while ( i.peek() != EOF ) {