JDK-4358008 : RFE: Character.UnicodeBlock should provide way to obtain its valid character range
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.3.0
  • Priority: P5
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2000-07-31
  • Updated: 2015-10-28
  • Resolved: 2006-06-13
Related Reports
Relates :  
Description
Name: skT45625			Date: 07/31/2000


java version "1.2.2"
HotSpot VM (1.0.1, mixed mode, build g)

Character.UnicodeBlock should provide the reverse lookup of
Character.UnicodeBlock.of(char) such that a UnicodeBlock could tell the caller
what characters are valid.  Something along the following:

/** Return the first character in the block */
public char getBlockStart();

/** Return the last character in the block */
public char getBlockEnd();
(Review ID: 107724) 
======================================================================

Comments
EVALUATION This RFE was filed on year 2000 and hasn't got any votes since then. And, I cannot imagine so many situations that such methods are used. I decided to close this RFE as "will not fix".
13-06-2006

WORK AROUND Name: skT45625 Date: 07/31/2000 Currently, the only way to do this is to cycle through the characters one by one until you find one that is in the character block and then keep going until you find the next one that is not in the block. ======================================================================
02-09-2004

EVALUATION As we approach the final spec of Unicode 3.1, I am hesitant to add API that returns a single char value. There will be UnicodeBlocks above \uFFFF. In that situation, it may be more appropriate to return int, char[], or even String. Will need to consider the appropriate API so we don't have to deprecate or change it later. john.oconner@Eng 2001-01-16
16-01-2001