~ubuntu-branches/ubuntu/natty/haxe/natty

« back to all changes in this revision

Viewing changes to haxe/std/neko/Utf8.hx

  • Committer: Bazaar Package Importer
  • Author(s): Jens Peter Secher
  • Date: 2010-01-31 23:08:43 UTC
  • mfrom: (5.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100131230843-1cxte2x20ypk9c25
Tags: 1:2.5-1
New upstream version, taken from new upstream subversion repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
                var ret = untyped __dollar__smake(sl);
59
59
                var i = 0;
60
60
                utf8_iter(s,function(c) {
61
 
                        // euro symbol
62
 
                        if( c == 8364 )
 
61
                        if( c == 8364 ) // euro symbol
63
62
                                c = 164;
 
63
                        else if( c == 0xFEFF ) // BOM
 
64
                                return;
64
65
                        else if( c > 255 )
65
66
                                throw "Utf8::decode invalid character ("+c+")";
66
67
                        untyped __dollar__sset(ret,i,c);