comparison scn2k/scn2k_cmd.cc @ 44:a85cdca1980a

* fixed itoa_ws * now, configure fails if the requested vorbis lib is not found (so it doesn't build with the wrong lib) * removed unused current_section in koe_ogg.cc
author thib
date Wed, 25 Mar 2009 16:00:52 +0000
parents 01aa5ddf7dc8
children 5f548e5957a8
comparison
equal deleted inserted replaced
43:01aa5ddf7dc8 44:a85cdca1980a
485 sprintf(buf, fmt, arg1); 485 sprintf(buf, fmt, arg1);
486 } 486 }
487 int i; 487 int i;
488 for (i=0; buf[i] != 0; i++) { 488 for (i=0; buf[i] != 0; i++) {
489 if (buf[i] == ' ') { 489 if (buf[i] == ' ') {
490 wc[0] = 0x81; 490 wc[0] = 0x81; // ' ' in SHIFT_JIS
491 wc[0] = 0x40; 491 wc[1] = 0x40;
492 } else if (buf[i] == '-') { 492 } else if (buf[i] == '-') {
493 wc[0] = 0x81; 493 wc[0] = 0x81; // '-' in SHIFT_JIS
494 wc[0] = 0x7c; 494 wc[1] = 0x7c;
495 } else if (isdigit(buf[i])) { 495 } else if (isdigit(buf[i])) {
496 wc[0] = 0x82; 496 wc[0] = 0x82; // number in SHIFT_JIS
497 wc[1] = buf[i] - '0' + 0x4f; 497 wc[1] = buf[i] - '0' + 0x4f;
498 } else { 498 } else {
499 continue; 499 continue;
500 } 500 }
501 result += wc; 501 result += wc;