src/BasicEscapingProcessor.h
branchv_0
changeset 4 372b161669e4
parent 3 ae8775e0bc7a
child 7 bda9d3c83cb7
equal deleted inserted replaced
3:ae8775e0bc7a 4:372b161669e4
    39 			else if (ch == L'\n') result.put(ESC).put(L'n');
    39 			else if (ch == L'\n') result.put(ESC).put(L'n');
    40 			else if (ch == L'\r');
    40 			else if (ch == L'\r');
    41 			else if (ch == L'\t') result.put(ESC).put(L't');
    41 			else if (ch == L'\t') result.put(ESC).put(L't');
    42 			else if (ch == L'"' && quotingType != QuotingType::Apostrophes) result.put(ESC).put(ch);
    42 			else if (ch == L'"' && quotingType != QuotingType::Apostrophes) result.put(ESC).put(ch);
    43 			else if (ch == L'\'' && quotingType != QuotingType::Quotes) result.put(ESC).put(ch);
    43 			else if (ch == L'\'' && quotingType != QuotingType::Quotes) result.put(ESC).put(ch);
       
    44 			else if (ch == L'=' && quotingType == QuotingType::None) result.put(ESC).put(ch);
    44 			else result.put(ch);
    45 			else result.put(ch);
    45 		}
    46 		}
    46 
    47 
    47 		return result.str();
    48 		return result.str();
    48 	}
    49 	}