# C wcwidth equivalent in Ruby 1.9

**URL:** <https://www.ruby-forum.com/t/c-wcwidth-equivalent-in-ruby-1-9/161769>\
**Category:** Ruby\
**Created:** [March 2, 2009, 9:54am UTC](https://www.ruby-forum.com/t/c-wcwidth-equivalent-in-ruby-1-9/161769 "2009-03-02T09:54:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phasis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e56c9b/32.png) [@phasis](https://www.ruby-forum.com/u/phasis)\
**Post date:** [March 2, 2009, 9:54am UTC](https://www.ruby-forum.com/t/c-wcwidth-equivalent-in-ruby-1-9/161769/1 "2009-03-02T09:54:03Z")

</div>

Hi,

I want to know if there is an equivalent to the C function wcwidth in  
ruby 1.9.  
wcwidth is a function determine columns needed for a wide character.

If not exists, how can I implement the wcwidth method?

Any help appreciated,

Park H.
