Browse Subversion Repository
Diff of /trunk/teraterm/ttpset/ttset.c
Parent Directory
| Revision Log
| Patch
| 2651 |
/* quoting char */ |
/* quoting char */ |
| 2652 |
q = Source[i]; |
q = Source[i]; |
| 2653 |
/* only '"' is used as quoting char */ |
/* only '"' is used as quoting char */ |
| 2654 |
if (q != '"') |
if (q == '"') |
|
q = 0; |
|
|
else |
|
| 2655 |
i++; |
i++; |
| 2656 |
|
|
| 2657 |
c = Source[i]; |
c = Source[i]; |
| 2658 |
i++; |
i++; |
| 2659 |
j = 0; |
j = 0; |
| 2660 |
while ((c != 0) && (c != q)) { |
while ((c != 0)) { |
| 2661 |
Dest[j] = c; |
if (c != '"') { |
| 2662 |
j++; |
Dest[j] = c; |
| 2663 |
|
j++; |
| 2664 |
|
} |
| 2665 |
|
else { |
| 2666 |
|
if (q == '"' && Source[i] == '"') { |
| 2667 |
|
Dest[j] = c; |
| 2668 |
|
j++; |
| 2669 |
|
i++; |
| 2670 |
|
} |
| 2671 |
|
else if (q == '"' && Source[i] == '\0') { |
| 2672 |
|
break; |
| 2673 |
|
} |
| 2674 |
|
else { |
| 2675 |
|
Dest[j] = c; |
| 2676 |
|
j++; |
| 2677 |
|
} |
| 2678 |
|
} |
| 2679 |
c = Source[i]; |
c = Source[i]; |
| 2680 |
i++; |
i++; |
| 2681 |
} |
} |
|
|
Legend:
| Removed from v.3425 |
|
| changed lines |
| |
Added in v.3436 |
|
|
|