Skip to content

Commit

Permalink
Doc edits
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakjois committed Apr 22, 2016
1 parent 0621ec8 commit 6f1286e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ucdn_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("ucdn module", function()
assert.are_equal("8.0.0", ucdn.get_unicode_version())
end)

it("returns the bidi class for a given codepoint", function()
it("returns the Bidi_Class propety value for a given codepoint", function()
assert.are_equal(ucdn.UCDN_BIDI_CLASS_AL, ucdn.get_bidi_class(0x0627)) -- U+0627 ARABIC LETTER ALEF
assert.are_equal(ucdn.UCDN_BIDI_CLASS_L, ucdn.get_bidi_class(0x0907)) -- U+0907 DEVANAGARI LETTER I
assert.are_equal(ucdn.UCDN_BIDI_CLASS_WS, ucdn.get_bidi_class(0x0020)) -- U+0020 SPACE
Expand Down
6 changes: 6 additions & 0 deletions src/ucdn.luadoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
-- @module ucdn

--- Return version of the Unicode database.
-- @return version string, e.g. `8.0.0`
-- @function get_unicode_version

--- Get bidirectional class of a codepoint.
-- @param code Unicode codepoint
-- @return value according to ucdn.UCDN_BIDI_CLASS_* and as defined in UAX#44.
-- @function get_bidi_class

--- Bidi_Class property.
-- Enumerated constants representing [Bidi_Class values](http://www.unicode.org/reports/tr44/#Bidi_Class_Values).
-- @section
Expand Down

0 comments on commit 6f1286e

Please sign in to comment.