Differences From Artifact [8a4feba8cf]:
- File src/printf.c — part of check-in [9a8fdf7294] at 2009-12-18 21:38:19 on branch trunk — Change the name of the strnlen_() function in printf.c to StrNLen32(). (user: drh size: 27387) [more...]
To Artifact [26b83508d5]:
- File src/printf.c — part of check-in [a4b10f43e2] at 2010-03-21 21:51:49 on branch trunk — Avoid the use of rowids in URLs, since they can change on a rebuild. Use SHA1-derived artifact IDs instead. (user: drh size: 27584) [more...]
| ︙ | |||
50 51 52 53 54 55 56 57 58 59 60 61 62 63 | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | + | #define etHTMLIZE 16 /* Make text safe for HTML */ #define etHTTPIZE 17 /* Make text safe for HTTP. "/" encoded as %2f */ #define etURLIZE 18 /* Make text safe for HTTP. "/" not encoded */ #define etFOSSILIZE 19 /* The fossil header encoding format. */ #define etPATH 20 /* Path type */ #define etWIKISTR 21 /* Wiki text rendered from a char* */ #define etWIKIBLOB 22 /* Wiki text rendered from a Blob* */ #define etSTRINGID 23 /* String with length limit for a UUID prefix */ /* ** An "etByte" is an 8-bit unsigned value. */ typedef unsigned char etByte; |
| ︙ | |||
99 100 101 102 103 104 105 106 107 108 109 110 111 112 | 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | + |
{ 'B', 0, 2, etBLOBSQL, 0, 0 },
{ 'w', 0, 2, etWIKISTR, 0, 0 },
{ 'W', 0, 2, etWIKIBLOB, 0, 0 },
{ 'h', 0, 4, etHTMLIZE, 0, 0 },
{ 't', 0, 4, etHTTPIZE, 0, 0 }, /* "/" -> "%2F" */
{ 'T', 0, 4, etURLIZE, 0, 0 }, /* "/" unchanged */
{ 'F', 0, 4, etFOSSILIZE, 0, 0 },
{ 'S', 0, 4, etSTRINGID, 0, 0 },
{ 'c', 0, 0, etCHARX, 0, 0 },
{ 'o', 8, 0, etRADIX, 0, 2 },
{ 'u', 10, 0, etRADIX, 0, 0 },
{ 'x', 16, 0, etRADIX, 16, 1 },
{ 'X', 16, 0, etRADIX, 0, 4 },
{ 'f', 0, 1, etFLOAT, 0, 0 },
{ 'e', 0, 1, etEXP, 30, 0 },
|
| ︙ | |||
573 574 575 576 577 578 579 580 581 582 583 584 585 586 | 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 | + + + + |
}else{
bufpt[i]=e[i];
}
}
bufpt[length]='\0';
break;
}
case etSTRINGID: {
precision = 16;
/* Fall through */
}
case etSTRING:
case etDYNSTRING: {
int limit = flag_alternateform ? va_arg(ap,int) : -1;
bufpt = va_arg(ap,char*);
if( bufpt==0 ){
bufpt = "";
}else if( xtype==etDYNSTRING ){
|
| ︙ |