Commit ac5b8bf61575fd65c8be9b71d4a54eaeccb4e269

Authored by totoro
1 parent 2672a4cf

some typo and remove macro for force striing

Showing 1 changed file with 8 additions and 8 deletions   Show diff stats
anubis_dev/library/system/string.anubis
1   -
  1 +
2 2 *Project* The Anubis Project
3 3  
4 4 *Title* String Toolbox
... ... @@ -41,22 +41,22 @@ read tools/int.anubis
41 41 line. Any HTTP request or HTTP answer has two parts (the second one may be empty): the
42 42 header and the body. The header is made of several lines (at least one), and separated
43 43 from the body by a blank line. In other words, the header is separated from the body by
44   - a ''double crlf''.
  44 + a ''double crlf''
45 45  
46   -public define String cr = "\r". //implode([(Word8)13]).
47   -public define String lf = "\n". //implode([(Word8)10]).
48   -public define String crlf = "\r\n". //implode([(Word8)13,10]). i.e ASCII characters: 13 10 (in this order)
49   -public define String crlfcrlf = "\r\n\r\n". //implode([(Word8)13,10,13,10]).
  46 +public define String cr = "\r". //implode([(Word8)13])
  47 +public define String lf = "\n". //implode([(Word8)10])
  48 +public define String crlf = "\r\n". //implode([(Word8)13,10]) i.e ASCII characters: 13 10 (in this order)
  49 +public define String crlfcrlf = "\r\n\r\n". //implode([(Word8)13,10,13,10])
50 50  
51 51  
52   -public define macro String
  52 +public define String
53 53 force_String
54 54 (
55 55 Maybe(String) str
56 56 ) =
57 57 force(str, "").
58 58  
59   - This file defines the function 'find':
  59 + This file defines the function 'find'
60 60  
61 61 public define Maybe(Int)
62 62 find
... ...