Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

67 строки
3.4 KiB

20 лет назад
18 лет назад
20 лет назад
18 лет назад
20 лет назад
18 лет назад
18 лет назад
18 лет назад
20 лет назад
18 лет назад
20 лет назад
18 лет назад
20 лет назад
18 лет назад
20 лет назад
18 лет назад
20 лет назад
18 лет назад
20 лет назад
20 лет назад
18 лет назад
20 лет назад
18 лет назад
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Module ibrowse_lib</title>
  5. <link rel="stylesheet" type="text/css" href="stylesheet.css">
  6. </head>
  7. <body bgcolor="white">
  8. <h1>Module ibrowse_lib</h1>
  9. Module with a few useful functions.
  10. <ul><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>
  11. <h2><a name="description">Description</a></h2>Module with a few useful functions
  12. <h2><a name="index">Function Index</a></h2>
  13. <table width="100%" border="1"><tr><td valign="top"><a href="#dec2hex-2">dec2hex/2</a></td><td>dec2hex taken from gtk.erl in std dist
  14. M = integer() -- number of hex digits required
  15. N = integer() -- the number to represent as hex.</td></tr>
  16. <tr><td valign="top"><a href="#decode_base64-1">decode_base64/1</a></td><td>Implements the base64 decoding algorithm.</td></tr>
  17. <tr><td valign="top"><a href="#decode_rfc822_date-1">decode_rfc822_date/1</a></td><td/></tr>
  18. <tr><td valign="top"><a href="#drv_ue-1">drv_ue/1</a></td><td/></tr>
  19. <tr><td valign="top"><a href="#drv_ue-2">drv_ue/2</a></td><td/></tr>
  20. <tr><td valign="top"><a href="#encode_base64-1">encode_base64/1</a></td><td>Implements the base64 encoding algorithm.</td></tr>
  21. <tr><td valign="top"><a href="#status_code-1">status_code/1</a></td><td>Given a status code, returns an atom describing the status code.</td></tr>
  22. <tr><td valign="top"><a href="#url_encode-1">url_encode/1</a></td><td>URL-encodes a string based on RFC 1738.</td></tr>
  23. </table>
  24. <h2><a name="functions">Function Details</a></h2>
  25. <h3><a name="dec2hex-2">dec2hex/2</a></h3>
  26. <p><tt>dec2hex(M::integer(), N::integer()) -&gt; string()</tt></p>
  27. <p>dec2hex taken from gtk.erl in std dist
  28. M = integer() -- number of hex digits required
  29. N = integer() -- the number to represent as hex</p>
  30. <h3><a name="decode_base64-1">decode_base64/1</a></h3>
  31. <p><tt>decode_base64(List::In) -&gt; Out | <a href="#type-exit">exit({error, invalid_input})</a></tt>
  32. <ul><li><tt>In = string() | binary()</tt></li><li><tt>Out = string() | binary()</tt></li></ul></p>
  33. <p>Implements the base64 decoding algorithm. The output data type matches in the input data type.</p>
  34. <h3><a name="decode_rfc822_date-1">decode_rfc822_date/1</a></h3>
  35. <tt>decode_rfc822_date(String) -&gt; term()
  36. </tt>
  37. <h3><a name="drv_ue-1">drv_ue/1</a></h3>
  38. <tt>drv_ue(Str) -&gt; term()
  39. </tt>
  40. <h3><a name="drv_ue-2">drv_ue/2</a></h3>
  41. <tt>drv_ue(Str, Port) -&gt; term()
  42. </tt>
  43. <h3><a name="encode_base64-1">encode_base64/1</a></h3>
  44. <p><tt>encode_base64(List::In) -&gt; Out</tt>
  45. <ul><li><tt>In = string() | binary()</tt></li><li><tt>Out = string() | binary()</tt></li></ul></p>
  46. <p>Implements the base64 encoding algorithm. The output data type matches in the input data type.</p>
  47. <h3><a name="status_code-1">status_code/1</a></h3>
  48. <p><tt>status_code(StatusCode::<a href="#type-status_code">status_code()</a>) -&gt; StatusDescription</tt>
  49. <ul><li><tt><a name="type-status_code">status_code()</a> = string() | integer()</tt></li><li><tt>StatusDescription = atom()</tt></li></ul></p>
  50. <p>Given a status code, returns an atom describing the status code.</p>
  51. <h3><a name="url_encode-1">url_encode/1</a></h3>
  52. <p><tt>url_encode(Str) -&gt; UrlEncodedStr</tt>
  53. <ul><li><tt>Str = string()</tt></li><li><tt>UrlEncodedStr = string()</tt></li></ul></p>
  54. <p>URL-encodes a string based on RFC 1738. Returns a flat list.</p>
  55. </body>
  56. </html>