| OLD | NEW |
| 1 // Copyright 2011, Google Inc. | 1 // Copyright 2011, Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | 29 |
| 30 // This file is intended to be included in another C++ file where the character | 30 // This file is intended to be included in another C++ file where the character |
| 31 // types are defined. This allows us to write mostly generic code, but not have | 31 // types are defined. This allows us to write mostly generic code, but not have |
| 32 // templace bloat because everything is inlined when anybody calls any of our | 32 // templace bloat because everything is inlined when anybody calls any of our |
| 33 // functions. | 33 // functions. |
| 34 | 34 |
| 35 #ifndef URL_URL_CANON_INTERNAL_H_ | 35 #ifndef GOOGLEURL_SRC_URL_CANON_INTERNAL_H__ |
| 36 #define URL_URL_CANON_INTERNAL_H_ | 36 #define GOOGLEURL_SRC_URL_CANON_INTERNAL_H__ |
| 37 | 37 |
| 38 #include <stdlib.h> | 38 #include <stdlib.h> |
| 39 | 39 |
| 40 #include "base/logging.h" | 40 #include "base/logging.h" |
| 41 #include "url/url_canon.h" | 41 #include "googleurl/src/url_canon.h" |
| 42 | 42 |
| 43 namespace url_canon { | 43 namespace url_canon { |
| 44 | 44 |
| 45 // Character type handling ----------------------------------------------------- | 45 // Character type handling ----------------------------------------------------- |
| 46 | 46 |
| 47 // Bits that identify different character types. These types identify different | 47 // Bits that identify different character types. These types identify different |
| 48 // bits that are set for each 8-bit character in the kSharedCharTypeTable. | 48 // bits that are set for each 8-bit character in the kSharedCharTypeTable. |
| 49 enum SharedCharTypes { | 49 enum SharedCharTypes { |
| 50 // Characters that do not require escaping in queries. Characters that do | 50 // Characters that do not require escaping in queries. Characters that do |
| 51 // not have this flag will be escaped; see url_canon_query.cc | 51 // not have this flag will be escaped; see url_canon_query.cc |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 // _strtoui64 and strtoull behave the same | 451 // _strtoui64 and strtoull behave the same |
| 452 inline unsigned long long _strtoui64(const char* nptr, | 452 inline unsigned long long _strtoui64(const char* nptr, |
| 453 char** endptr, int base) { | 453 char** endptr, int base) { |
| 454 return strtoull(nptr, endptr, base); | 454 return strtoull(nptr, endptr, base); |
| 455 } | 455 } |
| 456 | 456 |
| 457 #endif // WIN32 | 457 #endif // WIN32 |
| 458 | 458 |
| 459 } // namespace url_canon | 459 } // namespace url_canon |
| 460 | 460 |
| 461 #endif // URL_URL_CANON_INTERNAL_H_ | 461 #endif // GOOGLEURL_SRC_URL_CANON_INTERNAL_H__ |
| OLD | NEW |