Branch: Tag:

2013-06-17

2013-06-17 14:15:28 by Martin Nilsson <nilsson@opera.com>

Rewrite Locale.Charset to Charset

68:   string encode_headers(Headers h)   {    string r0 = "", r = ""; -  object e = Locale.Charset.encoder("utf16-be"); +  object e = Charset.encoder("utf16-be");    foreach(h; HeaderIdentifier hi; string|int|array va)    foreach(arrayp(va)? va:({va}), string|int v) {    string vv;
98:   Headers decode_headers(string h)   {    Headers r = ([]); -  object d = Locale.Charset.decoder("utf16-be"); +  object d = Charset.decoder("utf16-be");    while(sizeof(h)) {    HeaderIdentifier hi = h[0];    string|int v = 0;