summaryrefslogtreecommitdiffstats
path: root/lib/format.lua
Commit message (Collapse)AuthorAgeFilesLines
* Modified format string_to_table so didn't crash when passed nil.release-0.4.17Ted Trask2008-12-271-16/+18
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1653 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified format.lib to pass in comment characters to parse_lines, ↵release-0.4.14Ted Trask2008-11-251-22/+24
| | | | | | parse_linesandwords, and parse_configfile. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1610 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified format to add escapemagiccharacter functions to escape Lua magic ↵Ted Trask2008-11-101-0/+4
| | | | | | characters in a string. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1587 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified format library. parse_configfile2, update_configfile2, ↵Ted Trask2008-10-031-38/+26
| | | | | | get_section, and set_section became parse_ini_file, update_ini_file, get_ini_section, and set_ini_section. Updated all code that used these functions. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1539 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Auditing functions in placeNathan Angelacos2008-09-291-16/+16
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1536 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Removed getopts library and added functionality to format library as ↵Ted Trask2008-09-291-1/+243
| | | | | | opts_to_table, table_to_opts, parse_configfile2, update_configfile2, get_section, and set_section. New functions work on strings, not files. Modified all code using getopts to use format instead. Fixed nil string bugs in TCPProxy. Fixed forward only bug in DNSCache. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1535 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleanup of some libs.Ted Trask2008-09-261-15/+14
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1533 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added parse_configfile function to format.lua library.Ted Trask2008-09-241-0/+12
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1488 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified format library to operate on strings rather than files - makes it ↵Ted Trask2008-09-191-104/+160
| | | | | | more flexible. Removed dependencies and unnecessary _to_string functions - use table.concat instead. Changed remove_blanks_comments to parse_lines. Added parse_linesandwords, replace_line, insert_line, and get_line functions from parser.lua and removed parser.lua. Made slight changes to squid and devtools to reflect library changes. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1479 ab2d0c66-481e-0410-8bed-d214d4d58bed
* added expand_bash_syntax_vars functionNathan Angelacos2008-09-171-0/+24
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1473 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added the full roles to the sessiondata.Mike Mason2008-02-051-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@696 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Adding the beingings of the authorization items. Also adding some of the ↵Mike Mason2008-02-041-1/+12
| | | | | | updates to the Autentication. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@689 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Updated the code to use md5sums in the acf passwd file. Made the ↵Mike Mason2008-01-301-1/+0
| | | | | | md5sum_string function(to go along with md5sum_file) in fs git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@665 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Change order of arguments inf table_to_string and string_to_tableNathan Angelacos2008-01-251-4/+4
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@650 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Changing password-model to use format. Adding function to format.Mike Mason2007-12-131-0/+13
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@423 ab2d0c66-481e-0410-8bed-d214d4d58bed
* More format libs like search_replace and such. All now documented on wikiMike Mason2007-12-061-19/+69
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@417 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Made validator functions useful after load, fixed a bug in format, changed ↵Mike Mason2007-12-051-0/+1
| | | | | | README to reflect changes git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@413 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added timezone information to date.lua. Added fs.file_write to be able to ↵Mike Mason2007-12-041-0/+9
| | | | | | add newlines at the end of the file(most strings don't have them) and also added a function to format.lua git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@408 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Put the cfe_unpack function in html. This helps with cfe troubleshooting. ↵Mike Mason2007-11-301-12/+0
| | | | | | | | | Should have been in html.lua in the first place. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@395 ab2d0c66-481e-0410-8bed-d214d4d58bed
* html.lua contains the cfe to specific html modules. Took out the table ↵Mike Mason2007-11-291-30/+1
| | | | | | function. html.lua being updated git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@388 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Lots of changes. fs.lua now only has file/filesystem functions. format.lua ↵Mike Mason2007-11-281-0/+119
added to be convert/sytle format changes. join.lua and split.lua put in format now. May delete later. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@385 ab2d0c66-481e-0410-8bed-d214d4d58bed