OLD | NEW |
1 /* Based on nsURLParsers.cc from Mozilla | 1 /* Based on nsURLParsers.cc from Mozilla |
2 * ------------------------------------- | 2 * ------------------------------------- |
3 * The contents of this file are subject to the Mozilla Public License Version | 3 * The contents of this file are subject to the Mozilla Public License Version |
4 * 1.1 (the "License"); you may not use this file except in compliance with | 4 * 1.1 (the "License"); you may not use this file except in compliance with |
5 * the License. You may obtain a copy of the License at | 5 * the License. You may obtain a copy of the License at |
6 * http://www.mozilla.org/MPL/ | 6 * http://www.mozilla.org/MPL/ |
7 * | 7 * |
8 * Software distributed under the License is distributed on an "AS IS" basis, | 8 * Software distributed under the License is distributed on an "AS IS" basis, |
9 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | 9 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
10 * for the specific language governing rights and limitations under the | 10 * for the specific language governing rights and limitations under the |
(...skipping 16 matching lines...) Expand all Loading... |
27 * of those above. If you wish to allow use of your version of this file only | 27 * of those above. If you wish to allow use of your version of this file only |
28 * under the terms of either the GPL or the LGPL, and not to allow others to | 28 * under the terms of either the GPL or the LGPL, and not to allow others to |
29 * use your version of this file under the terms of the MPL, indicate your | 29 * use your version of this file under the terms of the MPL, indicate your |
30 * decision by deleting the provisions above and replace them with the notice | 30 * decision by deleting the provisions above and replace them with the notice |
31 * and other provisions required by the GPL or the LGPL. If you do not delete | 31 * and other provisions required by the GPL or the LGPL. If you do not delete |
32 * the provisions above, a recipient may use your version of this file under | 32 * the provisions above, a recipient may use your version of this file under |
33 * the terms of any one of the MPL, the GPL or the LGPL. | 33 * the terms of any one of the MPL, the GPL or the LGPL. |
34 * | 34 * |
35 * ***** END LICENSE BLOCK ***** */ | 35 * ***** END LICENSE BLOCK ***** */ |
36 | 36 |
37 #include "googleurl/src/url_parse.h" | 37 #include "url/url_parse.h" |
38 | 38 |
39 #include <stdlib.h> | 39 #include <stdlib.h> |
40 | 40 |
41 #include "base/logging.h" | 41 #include "base/logging.h" |
42 #include "googleurl/src/url_parse_internal.h" | 42 #include "url/url_parse_internal.h" |
43 #include "googleurl/src/url_util.h" | 43 #include "url/url_util.h" |
44 #include "googleurl/src/url_util_internal.h" | 44 #include "url/url_util_internal.h" |
45 | 45 |
46 namespace url_parse { | 46 namespace url_parse { |
47 | 47 |
48 namespace { | 48 namespace { |
49 | 49 |
50 // Returns true if the given character is a valid digit to use in a port. | 50 // Returns true if the given character is a valid digit to use in a port. |
51 inline bool IsPortDigit(char16 ch) { | 51 inline bool IsPortDigit(char16 ch) { |
52 return ch >= '0' && ch <= '9'; | 52 return ch >= '0' && ch <= '9'; |
53 } | 53 } |
54 | 54 |
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 } | 914 } |
915 | 915 |
916 void ParseAfterScheme(const char16* spec, | 916 void ParseAfterScheme(const char16* spec, |
917 int spec_len, | 917 int spec_len, |
918 int after_scheme, | 918 int after_scheme, |
919 Parsed* parsed) { | 919 Parsed* parsed) { |
920 DoParseAfterScheme(spec, spec_len, after_scheme, parsed); | 920 DoParseAfterScheme(spec, spec_len, after_scheme, parsed); |
921 } | 921 } |
922 | 922 |
923 } // namespace url_parse | 923 } // namespace url_parse |
OLD | NEW |