| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "encodings/compact_lang_det/getonescriptspan.h" | 5 #include "encodings/compact_lang_det/getonescriptspan.h" |
| 6 #include <stdio.h> | 6 #include <stdio.h> |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "encodings/lang_enc.h" | 10 #include "encodings/lang_enc.h" |
| 11 #include "encodings/compact_lang_det/utf8propjustletter.h" | 11 #include "encodings/compact_lang_det/utf8propjustletter.h" |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 return ok; | 567 return ok; |
| 568 } | 568 } |
| 569 | 569 |
| 570 // Gets lscript number for letters; always returns | 570 // Gets lscript number for letters; always returns |
| 571 // 0 (common script) for non-letters | 571 // 0 (common script) for non-letters |
| 572 int getone::GetUTF8LetterScriptNum(const char* src) { | 572 int getone::GetUTF8LetterScriptNum(const char* src) { |
| 573 int srclen = cld_UniLib::OneCharLen(src); | 573 int srclen = cld_UniLib::OneCharLen(src); |
| 574 const uint8* usrc = reinterpret_cast<const uint8*>(src); | 574 const uint8* usrc = reinterpret_cast<const uint8*>(src); |
| 575 return UTF8GenericProperty(&utf8propletterscriptnum_obj, &usrc, &srclen); | 575 return UTF8GenericProperty(&utf8propletterscriptnum_obj, &usrc, &srclen); |
| 576 } | 576 } |
| OLD | NEW |