| 1083 | } |
| 1084 | |
| 1085 | static LIST * apply_modifiers_prepost( LIST * result, string * buf, |
| 1086 | VAR_EDITS * edits, int32_t n, LISTITER begin, LISTITER end ) |
| 1087 | { |
| 1088 | for ( LISTITER iter = begin; iter != end; iter = list_next( iter ) ) |
| 1089 | { |
| 1090 | for ( int32_t i = 0; i < n; ++i ) |
| 1091 | { |
| 1092 | if ( edits[ i ].prefix.ptr ) |
| 1093 | { |
| 1094 | string_append( buf, edits[ i ].prefix.ptr ); |
| 1095 | } |
| 1096 | } |
| 1097 | string_append( buf, object_str( list_item( iter ) ) ); |
| 1098 | for ( int32_t i = 0; i < n; ++i ) |
| 1099 | { |
| 1100 | if ( edits[ i ].postfix.ptr ) |
| 1101 | { |
| 1102 | string_append( buf, edits[ i ].postfix.ptr ); |
| 1103 | } |
| 1104 | } |
| 1105 | result = list_push_back( result, object_new( buf->value ) ); |
| 1106 | string_truncate( buf, 0 ); |
| 1107 | } |
| 1108 | return result; |
| 1109 | } |
| 1110 | |
| 1111 | static LIST * apply_modifiers_empty( LIST * result, string * buf, |
| 1112 | VAR_EDITS * edits, int32_t n ) |
no test coverage detected