| 907 | } |
| 908 | |
| 909 | txBoolean fx_parseURLHost(txMachine* the, txStringStream* src, txInteger from, txInteger to, txStringStream* dst, txBoolean special) |
| 910 | { |
| 911 | txString p = src->slot->value.string; |
| 912 | if ((to - from > 1) && (p[from] == '[') && (p[to - 1] == ']')) { |
| 913 | return fx_parseURLHostIPv6( the, src, from + 1, to - 1, dst); |
| 914 | } |
| 915 | if (special) { |
| 916 | if (fx_parseURLHostSpecial(the, src, from, to, dst)) |
| 917 | return fx_parseURLHostIPv4(the, src, from, to, dst); |
| 918 | return 0; |
| 919 | } |
| 920 | return fx_parseURLHostNotSpecial(the, src, from, to, dst); |
| 921 | } |
| 922 | |
| 923 | txBoolean fx_parseURLHostIPv4(txMachine* the, txStringStream* src, txInteger from, txInteger to, txStringStream* dst) |
| 924 | { |
no test coverage detected