| 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/letterscript_enum.h" | 5 #include "encodings/compact_lang_det/letterscript_enum.h" |
| 6 | 6 |
| 7 #include "encodings/compact_lang_det/win/cld_logging.h" | 7 #include "encodings/compact_lang_det/win/cld_logging.h" |
| 8 | 8 |
| 9 static const char* kUnicodeLScriptNames[ULScript_NUM_SCRIPTS] = { | 9 static const char* kUnicodeLScriptNames[ULScript_NUM_SCRIPTS] = { |
| 10 "Common", | 10 "Common", |
| 11 "Latin", | 11 "Latin", |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 const char* UnicodeLScriptName(const UnicodeLScript ls) { | 108 const char* UnicodeLScriptName(const UnicodeLScript ls) { |
| 109 CHECK(ls >= 0 && ls < ULScript_NUM_SCRIPTS); | 109 CHECK(ls >= 0 && ls < ULScript_NUM_SCRIPTS); |
| 110 return kUnicodeLScriptNames[ls]; | 110 return kUnicodeLScriptNames[ls]; |
| 111 } | 111 } |
| 112 | 112 |
| 113 | 113 |
| 114 const char* UnicodeLScriptCode(const UnicodeLScript ls) { | 114 const char* UnicodeLScriptCode(const UnicodeLScript ls) { |
| 115 CHECK(ls >= 0 && ls < ULScript_NUM_SCRIPTS); | 115 CHECK(ls >= 0 && ls < ULScript_NUM_SCRIPTS); |
| 116 return kLScriptName4[ls]; | 116 return kLScriptName4[ls]; |
| 117 } | 117 } |
| OLD | NEW |