Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #1861

Re: Actual width of unicode chracters.

From Steven Simpson <ss@domain.invalid>
Newsgroups comp.lang.java.help
Subject Re: Actual width of unicode chracters.
Date 2012-06-14 08:06 +0100
Organization Aioe.org NNTP Server
Message-ID <75foa9-b46.ln1@s.simpson148.btinternet.com> (permalink)
References <jr8tid$64v$1@tnews.hananet.net> <jr92cs$9m1$1@dont-email.me> <jr9h8n$ark$1@dont-email.me> <jr9j3p$qg0$1@tnews.hananet.net> <ac90eba4-9efe-4c35-9f2b-2590326f1fe5@googlegroups.com>

Show all headers | View raw


On 13/06/12 22:14, Lew wrote:
> Young wrote:
>> Thank you for the tries, I don't understand why I should use 
>> codePointCount() method. The length() method gives same result. I 
>> want to 
> Not in general it doesn't.
>
> Read the Javadocs for the two methods and you'll see why.

I've just read it, and not seen any surprises - it doesn't seem to have 
anything to do with the OP's problem, counting spaces occupied by a 
character when displayed on a console.  Whether a code point takes up 
two chars inside a program is unrelated to whether it takes up two 
display positions on a console.  Am I missing something?

-- 
ss at comp dot lancs dot ac dot uk

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Actual width of unicode chracters. Young <ycp101@gmail.com> - 2012-06-13 02:23 +0000
  Re: Actual width of unicode chracters. Roedy Green <see_website@mindprod.com.invalid> - 2012-06-12 20:42 -0700
  Re: Actual width of unicode chracters. markspace <-@.> - 2012-06-12 20:45 -0700
    Re: Actual width of unicode chracters. markspace <-@.> - 2012-06-13 00:58 -0700
      Re: Actual width of unicode chracters. Young <ycp101@gmail.com> - 2012-06-13 08:30 +0000
        Re: Actual width of unicode chracters. markspace <-@.> - 2012-06-13 08:45 -0700
        Re: Actual width of unicode chracters. Lew <lewbloch@gmail.com> - 2012-06-13 14:14 -0700
          Re: Actual width of unicode chracters. Steven Simpson <ss@domain.invalid> - 2012-06-14 08:06 +0100
            Re: Actual width of unicode chracters. "mayeul.marguet" <mayeul.marguet@free.fr> - 2012-06-14 10:26 +0200
              Re: Actual width of unicode chracters. "Peter J. Holzer" <hjp-usenet2@hjp.at> - 2012-06-14 15:32 +0200
                Re: Actual width of unicode chracters. "mayeul.marguet" <mayeul.marguet@free.fr> - 2012-06-14 16:47 +0200
                Re: Actual width of unicode chracters. "Peter J. Holzer" <hjp-usenet2@hjp.at> - 2012-06-16 20:39 +0200
  Re: Actual width of unicode chracters. Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-06-13 00:00 -0400
  Re: Actual width of unicode chracters. markspace <-@.> - 2012-06-13 00:24 -0700
  Re: Actual width of unicode chracters. Steven Simpson <ss@domain.invalid> - 2012-06-13 10:24 +0100

csiph-web