RBBI implementation doesn't support 64 bit

Description

Even though it is possible to do 64 bit access using UText, the implementation
of RuleBasedBreakIterator does not work for large offsets, because internal
variables (e.g., in handleNext or checkDictionary) are typed as int32_t, even
though UText's offset type is int64_t.

RBBI needs to use internal variables of type int64_t for offsets in order for
this to work. Another alternative is to say that 64 bit offsets are only
supported on 64 bit platforms, and use a type like signed long or an ICU-defined
type that will be 64 bits on 64-bit platforms, and 32 bits on 32-bit platforms.

Activity

Show:
TracBot
June 30, 2018, 11:49 PM
Trac Comment by notes2—1970-01-01T02:24:21.000Z

It would be a good idea to fix checkDictionary before it becomes protected. I'll
submit an API proposal.

TracBot
June 30, 2018, 11:49 PM
Trac Comment by auditor—1970-01-01T02:24:22.000Z
  • Fri Oct 6 03:15:05 2006 deborah changed notes2: comments: "" to "It would be a good idea to fix checkDictionary before it becomes protected. I'll submit an API proposal.",

  • Tue Oct 10 18:55:48 2006 grhoten changed notes2: assign: "" to "deborah", priority: "" to "medium", target: "UNSCH" to "3.8", weeks: "" to "0.1",

  • Tue Oct 10 18:55:48 2006 grhoten moved from incoming to textbounds

  • Fri Oct 20 18:46:28 2006 andy changed notes2: target: "3.8" to "3.8 Candidate", weeks: "0.1" to "1",

Assignee

Peter Edberg

Reporter

TracBot

Components

Labels

Reviewer

None

Priority

minor

Time Needed

Days

Fix versions

None