1+ /*
2+ * Copyright (c) 2017, salesforce.com, inc.
3+ * All rights reserved.
4+ * Licensed under the BSD 3-Clause license.
5+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6+ */
17package com .salesforce .grpc .contrib .xfcc ;
28
39import java .util .ArrayList ;
410import java .util .List ;
511
12+ /**
13+ * Utility methods for quote escaping in XFCC headers.
14+ */
615final class XfccQuoteUtil {
716 private XfccQuoteUtil () { }
817
918 /**
10- * Break str into individual elements, splitting on delim (not in quotes)
19+ * Break str into individual elements, splitting on delim (not in quotes).
1120 */
1221 static List <String > quoteAwareSplit (String str , char delim ) {
1322 boolean inQuotes = false ;
@@ -60,7 +69,7 @@ static List<String> quoteAwareSplit(String str, char delim) {
6069 }
6170
6271 /**
63- * Add escaping around double quote characters; wrap with quotes if special characters are present
72+ * Add escaping around double quote characters; wrap with quotes if special characters are present.
6473 */
6574 static String enquote (String value ) {
6675 // Escape inner quotes with \"
@@ -75,7 +84,7 @@ static String enquote(String value) {
7584 }
7685
7786 /**
78- * Remove leading and tailing unescaped quotes; remove escaping from escaped internal quotes
87+ * Remove leading and tailing unescaped quotes; remove escaping from escaped internal quotes.
7988 */
8089 static String dequote (String str ) {
8190 str = str .replace ("\\ \" " , "\" " );
0 commit comments