Qore v0.8.3

Programming Language Reference Manual

David Nichols

Helmut Wollmersdorfer

v. 0.8.3

Revision History
Revision 3.36 March 2011dn
Update to 0.8.3
Revision 3.226 December 2010dn
Update to 0.8.2
Revision 3.115 June 2010dn
Update to 0.8.1
Revision 3.018 November 2009dn
Update to 0.8.0
Revision 2.96 November 2009dn
Update to 0.7.7
Revision 2.813 July 2009dn
Update to 0.7.6
Revision 2.722 June 2009dn
Update to 0.7.5
Revision 2.64 April 2009dn
Update to 0.7.4
Revision 2.43 December 2008dn
Update to 0.7.2
Revision 2.26 November 2008dn
Update to 0.7.1
Revision 2.117 July 2008dn
Update to 0.7.0
Revision 2.02 March 2007dn
Update to 0.6.2
Revision 1.98 February 2007dn
Update to 0.6.1
Revision 1.819 January 2007dn
Update to 0.6.0
Revision 1.710 October 2006dn
Update to 0.5.3
Revision 1.615 September 2006dn
Update to 0.5.2
Revision 1.58 June 2006dn
Update to 0.5.1
Revision 1.47 May 2006dn
Update to 0.5.0, extensive updates, new content
Revision 1.330 Nov 2005dn
Update to 0.4.2
Revision 1.226 Oct 2005dn
Update to 0.4.0
Revision 1.114 Oct 2005hw
Converted to docbook.xml
Revision 1.02 Aug 2005hw
First release

Table of Contents

1. Introduction
1.1. Introduction to the Qore Programming Language
1.2. Document Conventions
2. Qore Language Description
2.1. Language Overview
2.2. Environment Variables
2.3. Conditional Parsing and Parse Defines
2.4. Qore Modules
2.5. Include Files
2.6. Identifiers
2.7. Comments
2.8. Variables
2.9. Basic Data Types
2.10. Container Data Types
2.11. Data Type Declarations
2.12. Time Zone Handling in Qore
2.13. Qore Strings and Character Encoding
2.14. Expressions
2.15. Operators
2.16. Regular Expressions in Qore
2.17. Date/Time Arithmetic
2.18. Statements
2.19. Functions
2.20. Namespaces
2.21. Constants
2.22. Classes
2.23. Threading
2.24. Exception Handling
2.25. Signal Handling
2.26. Event Handling
3. Function Library
3.1. Math Functions
3.2. Output Functions
3.3. Date and Time Functions
3.4. Qore Type Functions
3.5. Environment Functions
3.6. String Functions
3.7. Operating System Functions
3.8. Cryptographic Functions
3.9. Digest Functions
3.10. Filesystem Functions
3.11. Data Compression Functions
3.12. Miscellaneous Functions
3.13. Threading Functions
3.14. Debug Functions
3.15. String Formatting
4. System Namespaces and Class Library
4.1. Qore Constants
4.2. Type Namespace
4.3. File Class
4.4. Dir Class
4.5. TermIOS Class
4.6. GetOpt Class
4.7. FtpClient Class
4.8. Program Class
4.9. Socket Class
4.10. HTTPClient Class
4.11. SSLPrivateKey Class
4.12. SSLCertificate Class
4.13. TimeZone Class
4.14. SQL Constants
4.15. SQL::Datasource Class
4.16. SQL::DatasourcePool Class
4.17. SQL::SQLStatement Class
4.18. Thread::AbstractSmartLock Class
4.19. Thread::AutoGate Class
4.20. Thread::AutoLock Class
4.21. Thread::AutoReadLock Class
4.22. Thread::AutoWriteLock Class
4.23. Thread::Condition Class
4.24. Thread::Counter Class
4.25. Thread::Queue Class
4.26. Thread::RWLock Class
4.27. Thread::Mutex Class
4.28. Thread::RMutex Class
4.29. Thread::Sequence Class
4.30. Thread::Gate Class
5. Command-Line Parsing
6. Parse Directives
6.1. allow-bare-refs
6.2. assume-local
6.3. define
6.4. disable-all-warnings
6.5. disable-warning
6.6. else
6.7. enable-all-warnings
6.8. enable-warning
6.9. endif
6.10. exec-class
6.11. ifdef
6.12. ifndef
6.13. include
6.14. lock-options
6.15. lock-warnings
6.16. new-style
6.17. no-child-restrictions
6.18. no-class-defs
6.19. no-constant-defs
6.20. no-database
6.21. no-external-info
6.22. no-external-process
6.23. no-filesystem
6.24. no-global-vars
6.25. no-gui
6.26. no-locale-control
6.27. no-namespace-defs
6.28. no-network
6.29. no-new
6.30. no-process-control
6.31. no-subroutine-defs
6.32. no-terminal-io
6.33. no-thread-classes
6.34. no-thread-control
6.35. no-thread-info
6.36. no-threads
6.37. no-top-level
6.38. require-our
6.39. require-prototypes
6.40. require-types
6.41. requires
6.42. set-time-zone
6.43. strict-args
7. Warnings
8. Appendix A: List of Keywords
9. Appendix B: Known Bugs
10. Appendix D: Future Development