<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>101124</bug_id>
          
          <creation_ts>2012-11-02 16:25:34 -0700</creation_ts>
          <short_desc>LineBreakIteratorPoolICU should use a class or std::pair instead of a String as the hash-key for the pool</short_desc>
          <delta_ts>2012-11-02 16:31:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>89235</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Glenn Adams">glenn</assigned_to>
          <cc>glenn</cc>
    
    <cc>seikwon.kim</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>757737</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-11-02 16:25:34 -0700</bug_when>
    <thetext>LineBreakIteratorPoolICU should use a class or std::pair instead of a String as the hash-key for the pool

bug 89235 introduces a somewhat odd system of encoding the loose/strict breaking variant as part of the locale string which is used by the pool as a key.

It would be cleaner to have ICU-agnostic logic to parse out the locale and break variant and then pass them around as class instead of encoded in the string.

I believe this would require either defining a HashTraits for the new class, or using std::pair&lt;AtomicString, LineBreakIteratorMode&gt;  which I believe already has generic HashTraits to do the right thing. :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>