OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 } | 127 } |
128 | 128 |
129 return result; | 129 return result; |
130 } | 130 } |
131 | 131 |
132 /** | 132 /** |
133 * @return {string} | 133 * @return {string} |
134 */ | 134 */ |
135 String.regexSpecialCharacters = function() | 135 String.regexSpecialCharacters = function() |
136 { | 136 { |
137 return "^[]{}()\\.^$*+?|-,"; | 137 return "^[]{}()\\.$*+?|-,"; |
138 } | 138 } |
139 | 139 |
140 /** | 140 /** |
141 * @return {string} | 141 * @return {string} |
142 */ | 142 */ |
143 String.prototype.escapeForRegExp = function() | 143 String.prototype.escapeForRegExp = function() |
144 { | 144 { |
145 return this.escapeCharacters(String.regexSpecialCharacters()); | 145 return this.escapeCharacters(String.regexSpecialCharacters()); |
146 } | 146 } |
147 | 147 |
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1528 this._outgoingCallback(); | 1528 this._outgoingCallback(); |
1529 } | 1529 } |
1530 } | 1530 } |
1531 | 1531 |
1532 /** | 1532 /** |
1533 * @param {*} value | 1533 * @param {*} value |
1534 */ | 1534 */ |
1535 function suppressUnused(value) | 1535 function suppressUnused(value) |
1536 { | 1536 { |
1537 } | 1537 } |
OLD | NEW |