URL encoding: Difference between revisions

Content deleted Content added
Alextretyak (talk | contribs)
Added 11l
Alextretyak (talk | contribs)
Line 43:
<lang 11l>F url_encode(s)
V r = ‘’
V i = 0
V buf = ‘’
 
Line 53 ⟶ 52:
@buf = ‘’
 
L i <(c) s.len
V c = s[i]
I c C (‘0’..‘9’, ‘a’..‘z’, ‘A’..‘Z’, ‘_’, ‘.’, ‘-’, ‘~’)
flush_buf()
Line 60 ⟶ 58:
E
buf ‘’= c
i++
 
flush_buf()