OLD | NEW |
1 #include "ElemHideBase.h" | 1 #include "ElemHideBase.h" |
2 #include "StringScanner.h" | 2 #include "../StringScanner.h" |
3 | 3 |
4 namespace | 4 namespace |
5 { | 5 { |
6 void NormalizeWhitespace(DependentString& text, String::size_type& domainsEnd, | 6 void NormalizeWhitespace(DependentString& text, String::size_type& domainsEnd, |
7 String::size_type& selectorStart) | 7 String::size_type& selectorStart) |
8 { | 8 { |
9 // For element hiding filters we only want to remove spaces preceding the | 9 // For element hiding filters we only want to remove spaces preceding the |
10 // selector part. The positions we've determined already have to be adjusted | 10 // selector part. The positions we've determined already have to be adjusted |
11 // accordingly. | 11 // accordingly. |
12 | 12 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 if (it->second && !it->first.empty()) | 121 if (it->second && !it->first.empty()) |
122 { | 122 { |
123 if (!result.empty()) | 123 if (!result.empty()) |
124 result.append(u','); | 124 result.append(u','); |
125 result.append(it->first); | 125 result.append(it->first); |
126 } | 126 } |
127 } | 127 } |
128 } | 128 } |
129 return result; | 129 return result; |
130 } | 130 } |
OLD | NEW |