finally works

This commit is contained in:
Craig Condon
2012-11-30 20:11:55 -06:00
parent 45dd2d2680
commit 11aaccdf66
4443 changed files with 947516 additions and 27340 deletions
+39
View File
@@ -0,0 +1,39 @@
{
"source": "doc/api/string_decoder.markdown",
"modules": [
{
"textRaw": "StringDecoder",
"name": "stringdecoder",
"stability": 3,
"stabilityText": "Stable",
"desc": "<p>To use this module, do <code>require(&#39;string_decoder&#39;)</code>. StringDecoder decodes a\nbuffer to a string. It is a simple interface to <code>buffer.toString()</code> but provides\nadditional support for utf8.\n\n</p>\n<pre><code>var StringDecoder = require(&#39;string_decoder&#39;).StringDecoder;\nvar decoder = new StringDecoder(&#39;utf8&#39;);\n\nvar cent = new Buffer([0xC2, 0xA2]);\nconsole.log(decoder.write(cent));\n\nvar euro = new Buffer([0xE2, 0x82, 0xAC]);\nconsole.log(decoder.write(euro));</code></pre>\n",
"classes": [
{
"textRaw": "Class: StringDecoder",
"type": "class",
"name": "StringDecoder",
"desc": "<p>Accepts a single argument, <code>encoding</code> which defaults to <code>utf8</code>.\n\n</p>\n",
"methods": [
{
"textRaw": "StringDecoder.write(buffer)",
"type": "method",
"name": "write",
"desc": "<p>Returns a decoded string.</p>\n",
"signatures": [
{
"params": [
{
"name": "buffer"
}
]
}
]
}
]
}
],
"type": "module",
"displayName": "StringDecoder"
}
]
}