-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more documentation and some minor fixes
- Loading branch information
1 parent
5f86d02
commit 2af0702
Showing
9 changed files
with
52 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
bin | ||
doc/pages | ||
doc/xml | ||
doc/dox | ||
.DS_Store | ||
*.sublime-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
--no-output | ||
-D doc-gen | ||
-D display | ||
-D dox | ||
-dce no | ||
-lib thx.core | ||
ImportAll | ||
|
||
--each | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
-cmd rm -rf xml/* | ||
-cmd haxe build_doc.hxml | ||
-cmd rm -rf pages | ||
-cmd haxelib run dox -r / -o pages -i xml --title "thx.core" -in thx | ||
-cmd haxelib run dox -r / -o pages -i xml --title "thx.core" -in thx #--template-path dox/templates | ||
#-cmd cp -r dox/resources/* pages | ||
-cmd static pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
package thx.core; | ||
|
||
/** | ||
`ERegs` provides helper methods to use together with `EReg`. | ||
**/ | ||
class ERegs { | ||
static var ESCAPE_PATTERN = ~/([-[\]{}()*+?.,\\^$|#\s])/g; | ||
|
||
/** | ||
It escapes any characer in a string that has a special meaning when used in a regula expression. | ||
**/ | ||
public static function escape(text : String) : String | ||
return ESCAPE_PATTERN.replace(text, "\\$1"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters