Unnamed Fossil Project

Check-in [dd0eddb4cd]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:updated
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:dd0eddb4cd506bbf2ff35017827b86cdead3c4bd
User & Date: alexey@sudachen.name 2011-08-24 21:39:39
Context
2011-09-06
00:52
updated check-in: 1c9d4b953c user: alexey@sudachen.name tags: trunk
2011-08-24
21:39
updated check-in: dd0eddb4cd user: alexey@sudachen.name tags: trunk
2011-08-20
17:55
updated check-in: 3b588728b9 user: alexey@sudachen.name tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to string.hc.

1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481

1482
1483
1484
1485
1486
1487
1488
1489
    int R_capacity = S_len+1;
    char *R = 0;

    if ( S )
      for ( ; *S; ++S )
        {
          if ( 0 ) ;
          else if ( *S == '\n' ) R_count += __Elm_Append_Npl(&R,R_count,"~n",2,1,&R_capacity);
          else if ( *S == '\r' ) R_count += __Elm_Append_Npl(&R,R_count,"~r",2,1,&R_capacity);
          else if ( *S == '|' )  R_count += __Elm_Append_Npl(&R,R_count,"~!",2,1,&R_capacity);
          else if ( *S == '&' )  R_count += __Elm_Append_Npl(&R,R_count,"~a",2,1,&R_capacity);

          else if ( *S == ';' )  R_count += __Elm_Append_Npl(&R,R_count,"~:",2,1,&R_capacity);
          else if ( *S < 30 ) 
            {
              char b[2];
              Unsigned_To_Hex2(*S,b);
              R_count += __Elm_Append_Npl(&R,R_count,b,2,1,&R_capacity);
            }
          else R_count += __Elm_Append_Npl(&R,R_count,S,1,1,&R_capacity);







|
|
|
|
>
|







1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
    int R_capacity = S_len+1;
    char *R = 0;

    if ( S )
      for ( ; *S; ++S )
        {
          if ( 0 ) ;
          else if ( *S == '\n' || *S == '\r' 
            || *S == '|' || *S == '&' || *S == ';' 
            || *S == '<' || *S == '>' || *S =='[' 
            || *S ==']'  || *S == '{' || *S =='}'
            || *S == '"' || *S == '\'' || *S == '\\' )  
            R_count += __Elm_Append_Npl(&R,R_count,"~",1,1,&R_capacity);
          else if ( *S < 30 ) 
            {
              char b[2];
              Unsigned_To_Hex2(*S,b);
              R_count += __Elm_Append_Npl(&R,R_count,b,2,1,&R_capacity);
            }
          else R_count += __Elm_Append_Npl(&R,R_count,S,1,1,&R_capacity);