# Make us\_ascii\_mbc\_enc\_len() static

**URL:** <https://www.ruby-forum.com/t/make-us-ascii-mbc-enc-len-static/151718>\
**Category:** Development\
**Created:** [October 24, 2008, 7:54pm UTC](https://www.ruby-forum.com/t/make-us-ascii-mbc-enc-len-static/151718 "2008-10-24T19:54:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sugie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@sugie](https://www.ruby-forum.com/u/sugie)\
**Post date:** [October 24, 2008, 7:54pm UTC](https://www.ruby-forum.com/t/make-us-ascii-mbc-enc-len-static/151718/1 "2008-10-24T19:54:54Z")

</div>

e$B:XF#$H?=$7$^$9!#e(B

enc/us\_ascii.ce$BFb$Ne(Bus\_ascii\_mbc\_enc\_len()e$B$K!“e(Bprefixe$B$,IU$$$F$$$J$$$G$9!#e(B  
e$BM}M3$OJ,$+$j$^$;$s$,!”!Ve(Bexterne$B!W$,IU$$$F$$$k$N$G!"$3$l$O30It$G;H$o$l$kI,MW$,e(B  
e$B$"$k4X?t$J$N$G$7$g$&$+!#$=$l$J$i$P!"e(Brb\_e$B$rIU$1$F$[$7$$$G$9!#e(B

e$B$7$+$7\<+J,$OI,MW@-$,J,$+$i$J$$$N$G!"$H$j$"$($:e(Bstatice$B$K$9$k0l9T%Q%C%A$re(B  
e$BEj$2$F$\_$^$9!#e(B

# Index: …/enc/us\_ascii.c

— …/enc/us\_ascii.c (revision 19925)  
+++ …/enc/us\_ascii.c (working copy)  
@@ -1,6 +1,6 @@  
#include “regenc.h”

-extern int  
+static int  
us\_ascii\_mbc\_enc\_len(const UChar\* p, const UChar\* e, OnigEncoding enc)  
{  
if (\*p & 0x80)
