| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller ( mueller@kde.org ) | 4 * (C) 2001 Dirk Mueller ( mueller@kde.org ) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) | 7 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 double average16bitLength = | 258 double average16bitLength = |
| 259 m_number16BitStrings | 259 m_number16BitStrings |
| 260 ? (double)m_total16BitData / (double)m_number16BitStrings | 260 ? (double)m_total16BitData / (double)m_number16BitStrings |
| 261 : 0.0; | 261 : 0.0; |
| 262 dataLogF( | 262 dataLogF( |
| 263 "%8u (%5.2f%%) 16 bit %12llu chars %12llu bytes avg length " | 263 "%8u (%5.2f%%) 16 bit %12llu chars %12llu bytes avg length " |
| 264 "%6.1f\n", | 264 "%6.1f\n", |
| 265 m_number16BitStrings, percent16Bit, m_total16BitData, | 265 m_number16BitStrings, percent16Bit, m_total16BitData, |
| 266 m_total16BitData * 2, average16bitLength); | 266 m_total16BitData * 2, average16bitLength); |
| 267 | 267 |
| 268 double averageLength = | 268 double averageLength = m_totalNumberStrings ? (double)totalNumberCharacters / |
| 269 m_totalNumberStrings | 269 (double)m_totalNumberStrings |
| 270 ? (double)totalNumberCharacters / (double)m_totalNumberStrings | 270 : 0.0; |
| 271 : 0.0; | |
| 272 unsigned long long totalDataBytes = m_total8BitData + m_total16BitData * 2; | 271 unsigned long long totalDataBytes = m_total8BitData + m_total16BitData * 2; |
| 273 dataLogF( | 272 dataLogF( |
| 274 "%8u Total %12llu chars %12llu bytes avg length " | 273 "%8u Total %12llu chars %12llu bytes avg length " |
| 275 "%6.1f\n", | 274 "%6.1f\n", |
| 276 m_totalNumberStrings, totalNumberCharacters, totalDataBytes, | 275 m_totalNumberStrings, totalNumberCharacters, totalDataBytes, |
| 277 averageLength); | 276 averageLength); |
| 278 unsigned long long totalSavedBytes = m_total8BitData; | 277 unsigned long long totalSavedBytes = m_total8BitData; |
| 279 double percentSavings = totalSavedBytes | 278 double percentSavings = totalSavedBytes |
| 280 ? ((double)totalSavedBytes * 100) / | 279 ? ((double)totalSavedBytes * 100) / |
| 281 (double)(totalDataBytes + totalSavedBytes) | 280 (double)(totalDataBytes + totalSavedBytes) |
| (...skipping 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2213 } else if (localeIdMatchesLang(localeIdentifier, "lt")) { | 2212 } else if (localeIdMatchesLang(localeIdentifier, "lt")) { |
| 2214 // TODO(rob.buis) implement upper-casing rules for lt | 2213 // TODO(rob.buis) implement upper-casing rules for lt |
| 2215 // like in StringImpl::upper(locale). | 2214 // like in StringImpl::upper(locale). |
| 2216 } | 2215 } |
| 2217 } | 2216 } |
| 2218 | 2217 |
| 2219 return toUpper(c); | 2218 return toUpper(c); |
| 2220 } | 2219 } |
| 2221 | 2220 |
| 2222 } // namespace WTF | 2221 } // namespace WTF |
| OLD | NEW |