Mercurial > pidgin
comparison src/util.c @ 13488:14fa5c324573
[gaim-migrate @ 15864]
alphabetizing one, fixing an inane bug I somehow didn't notice in the other.
committer: Tailor Script <tailor@pidgin.im>
author | Christopher O'Brien <siege@pidgin.im> |
---|---|
date | Sat, 11 Mar 2006 15:22:13 +0000 |
parents | 974fffde9f60 |
children | 231c58da452d |
comparison
equal
deleted
inserted
replaced
13487:1b066d6f7d72 | 13488:14fa5c324573 |
---|---|
3750 /* append everything leading up to the &# */ | 3750 /* append everything leading up to the &# */ |
3751 g_string_append_len(out, buf, b-buf); | 3751 g_string_append_len(out, buf, b-buf); |
3752 | 3752 |
3753 b += 2; /* skip past the &# */ | 3753 b += 2; /* skip past the &# */ |
3754 | 3754 |
3755 /* strtoul will handle 0x prefix as hex, but not x */ | 3755 /* strtoul will treat 0x prefix as hex, but not just x */ |
3756 if(*b == 'x' || *b == 'X') | 3756 if(*b == 'x' || *b == 'X') { |
3757 base = 16; | 3757 base = 16; |
3758 b++; | |
3759 } | |
3758 | 3760 |
3759 /* advances buf to the end of the ncr segment */ | 3761 /* advances buf to the end of the ncr segment */ |
3760 wc = (gunichar) strtoul(b, &buf, base); | 3762 wc = (gunichar) strtoul(b, &buf, base); |
3761 | 3763 |
3762 /* this mimics the previous impl of ncr_decode */ | 3764 /* this mimics the previous impl of ncr_decode */ |