Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/lbfactory/LBFactory.php on line 697
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::open($save_path, $session_name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/PHPSessionHandler.php on line 180
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/PHPSessionHandler.php on line 195
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::read($id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/PHPSessionHandler.php on line 209
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::write($id, $dataStr) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/PHPSessionHandler.php on line 237
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::destroy($id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/PHPSessionHandler.php on line 343
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/PHPSessionHandler.php on line 364
Deprecated: Return type of MediaWiki\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php on line 625
Deprecated: Return type of MediaWiki\Session\Session::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php on line 631
Deprecated: Return type of MediaWiki\Session\Session::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php on line 643
Deprecated: Return type of MediaWiki\Session\Session::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php on line 637
Deprecated: Return type of MediaWiki\Session\Session::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php on line 655
Deprecated: Return type of MediaWiki\Session\Session::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php on line 649
Deprecated: Return type of MediaWiki\Session\Session::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php on line 665
Deprecated: Return type of & MediaWiki\Session\Session::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php on line 678
Deprecated: Return type of MediaWiki\Session\Session::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php on line 688
Deprecated: Return type of MediaWiki\Session\Session::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php on line 693
Deprecated: MapCacheLRU implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/MapCacheLRU.php on line 37
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 70
Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 80
Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 75
Deprecated: Return type of Wikimedia\Rdbms\ResultWrapper::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php on line 116
Deprecated: Return type of Wikimedia\Rdbms\ResultWrapper::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php on line 89
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Deprecated: Message implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /disk/data1/ccarh-project/ccarhwiki/website/includes/Message.php on line 160
Deprecated: Creation of dynamic property RequestContext::$recursion is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/context/RequestContext.php on line 328
Deprecated: ctype_digit(): Argument of type bool will be interpreted as string in the future in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/BagOStuff.php on line 735
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: Creation of dynamic property Parser::$mPreprocessorClass is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/parser/Parser.php on line 314
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: Creation of dynamic property Parser::$extCite is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/extensions/Cite/includes/Cite.php on line 1293
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/parser/Preprocessor_DOM.php on line 847
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Warning: Cannot modify header information - headers already sent by (output started at /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php:48) in /disk/data1/ccarh-project/ccarhwiki/website/includes/Feed.php on line 294
Warning: Cannot modify header information - headers already sent by (output started at /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php:48) in /disk/data1/ccarh-project/ccarhwiki/website/includes/Feed.php on line 300
Warning: Cannot modify header information - headers already sent by (output started at /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php:48) in /disk/data1/ccarh-project/ccarhwiki/website/includes/WebResponse.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php:48) in /disk/data1/ccarh-project/ccarhwiki/website/includes/WebResponse.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php:48) in /disk/data1/ccarh-project/ccarhwiki/website/includes/WebResponse.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /disk/data1/ccarh-project/ccarhwiki/website/includes/session/Session.php:48) in /disk/data1/ccarh-project/ccarhwiki/website/includes/WebResponse.php on line 72 https://wiki.ccarh.org/index.php?action=history&feed=atom&title=Zbex_functionsZbex functions - Revision history2024-12-04T08:50:35ZRevision history for this page on the wikiMediaWiki 1.33.0 Deprecated: RawMessage implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /disk/data1/ccarh-project/ccarhwiki/website/includes/RawMessage.php on line 34
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Deprecated: Creation of dynamic property PoolCounterWorkViaCallback::$poolCounter is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/poolcounter/PoolCounterWork.php on line 39
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618 https://wiki.ccarh.org/index.php?title=Zbex_functions&diff=748&oldid=prevCraig: added chapter navigator at top of page2010-10-15T06:17:44Z<p>added chapter navigator at top of page</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 06:17, 15 October 2010</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{ZbexChap</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> | before = [[Zbex relations|Relations]]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> | after = [[Zbex procedures|Procedures]]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">}}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><center></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>__TOC__</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>__TOC__</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></center></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The Zbex language includes a number of functions. The purpose of functions is to facilitate the writing of Zbex programs and to increase the speed of these programs. Functions can be used in assignment statements any place a normal variable can be used. Functions are classified by the data type of their output. Non-string and non-bit string functions can appear in relations. </div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The Zbex language includes a number of functions. The purpose of functions is to facilitate the writing of Zbex programs and to increase the speed of these programs. Functions can be used in assignment statements any place a normal variable can be used. Functions are classified by the data type of their output. Non-string and non-bit string functions can appear in relations. </div></td></tr>
</table>Craig Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Warning: Resource ID#3 used as offset, casting to integer (3) in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/objectcache/MemcachedClient.php on line 545
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618 https://wiki.ccarh.org/index.php?title=Zbex_functions&diff=552&oldid=prevCraig: added green color to putc output in last program on page2010-10-14T01:05:24Z<p>added green color to putc output in last program on page</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 01:05, 14 October 2010</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l679" >Line 679:</td>
<td colspan="2" class="diff-lineno">Line 679:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> loop for i = 1 to 9 </div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> loop for i = 1 to 9 </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> a = upk(pattern(i), b) </div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> a = upk(pattern(i), b) </div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> putc ~a </div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> putc <ins class="diffchange diffchange-inline"><span style="color:black; background-color:#00ff00"></ins>~a <ins class="diffchange diffchange-inline"></span></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> repeat </div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> repeat </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> run </div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> run </div></td></tr>
<!-- diff cache key ccarhwiki-cw_:diff::1.12:old-551:rev-552 -->
</table>Craig Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /disk/data1/ccarh-project/ccarhwiki/website/includes/libs/rdbms/database/Database.php on line 618 https://wiki.ccarh.org/index.php?title=Zbex_functions&diff=551&oldid=prevCraig: created page2010-10-14T01:00:22Z<p>created page</p>
<p><b>New page</b></p><div>__TOC__<br />
<br />
The Zbex language includes a number of functions. The purpose of functions is to facilitate the writing of Zbex programs and to increase the speed of these programs. Functions can be used in assignment statements any place a normal variable can be used. Functions are classified by the data type of their output. Non-string and non-bit string functions can appear in relations. <br />
<br />
== Functions with integer output ==<br />
<br />
<center><br />
{| class="wikitable" cellpadding="5" cellspacing="0" border="1" style="width:650px"<br />
|- {{Style|table header}}<br />
! scope="col" width="150px" | Function<br />
! scope="col" width="500px" | Output<br />
|- <br />
| <tt>rnd(int)</tt> || deliver a random number between 0 and &lt;input&gt; <br />
|- <br />
| <tt>not(int)</tt> || ones complement of &lt;input&gt; <br />
|- <br />
| <tt>abs(int)</tt> || absolute value of &lt;input&gt; <br />
<br />
|- <br />
| <tt>and(int,int)</tt> || for input (x,y), output = x & y <br />
|- <br />
| <tt>ior(int,int)</tt> || for input (x,y), output = x <nowiki>|</nowiki> y <br />
|- <br />
| <tt>xor(int,int)</tt> || for input (x,y), output = x exclusive or y <br />
|- <br />
| <tt>bit(int,int)</tt> || for input (x,y), output = bit x of y (0 is low order) <br />
|- <br />
| <tt>shr(int,int)</tt> || for input (x,y), output = shift x right y bits <br />
|- <br />
| <tt>shl(int,int)</tt> || for input (x,y), output = shift x left y bits <br />
<br />
|- <br />
| <tt>tst(table)</tt> || output = number of entries in the table tst also resets the sequential tget <br />
|- <br />
| <tt>tdx(table,str)</tt> || output = index number for key (second input) or 0 if the given key is not present <br />
<br />
|- <br />
| <tt>fix(real)</tt> || integer value of real number input <br />
<br />
|- <br />
| <tt>len(str)</tt> || length of input string <br />
|- <br />
| <tt>int(str)</tt> || integer value of string of digits, including the unitary plus or minus sign. The function skips leading blanks and also sets the sub variable to subscript of terminating (non-digit) byte or to <tt>len(str) + 1</tt><br />
|- <br />
| <tt>ors(str)</tt> || integer value of bit pattern in first 4 (or less) bytes of the string input <br />
<br />
|- <br />
| <tt>len(bstr)</tt> || byte length of padded bit string input <br />
|- <br />
| <tt>bln(bstr)</tt> || bit length of bit string input <br />
<br />
|}<br />
</center><br />
<br />
<br />
== Functions with real number output ==<br />
<br />
<center><br />
{| class="wikitable" cellpadding="5" cellspacing="0" border="1" style="width:650px"<br />
|- {{Style|table header}}<br />
! scope="col" width="150px" | Function<br />
! scope="col" width="500px" | Output<br />
|- <br />
| <tt>flt(int)</tt>|| convert integer value to real number <br />
|- <br />
| <tt>rnd(real)</tt>|| deliver a random number between 0 and &lt;input&gt; <br />
|- <br />
| <tt>abs(real)</tt>|| absolute value of &lt;input&gt; <br />
|- <br />
| <tt>dec(real)</tt>|| decimal part of &lt;input&gt; <br />
|- <br />
| <tt>sin(real)</tt>|| for input (x), output = sin(x) <br />
|- <br />
| <tt>cos(real)</tt>|| for input (x), output = cos(x) <br />
|- <br />
| <tt>tan(real)</tt>|| for input (x), output = tan(x) <br />
|- <br />
| <tt>ars(real)</tt>|| for input (x), output = arcsin(x) <br />
|- <br />
| <tt>arc(real)</tt>|| for input (x), output = arccos(x) <br />
|- <br />
| <tt>art(real)</tt>|| for input (x), output = arctan(x) <br />
|- <br />
| <tt>exx(real)</tt>|| for input (x), output = (e to the x power) <br />
|- <br />
| <tt>lnx(real)</tt>|| for input (x), output = (log base e of x) <br />
|- <br />
| <tt>sqt(real)</tt>|| for input (x), output = square root of x <br />
<br />
|- <br />
| <tt>pow(real,real)</tt>|| for input (x,y), output = x to the y power (x,y > 0) <br />
|- <br />
| <tt>flt(str)</tt>|| real value of string of digits, including the unitary plus or minus sign. The function skips leading blanks and also sets the sub variable to subscript of terminating (non-digit) byte or to <tt>len(str) + 1</tt>.<br />
|}<br />
</center><br />
<br />
<br />
== Functions with string output ==<br />
<br />
<center><br />
{| class="wikitable" cellpadding="5" cellspacing="0" border="1" style="width:650px"<br />
|- {{Style|table header}}<br />
! scope="col" width="150px" | Function<br />
! scope="col" width="500px" | Output<br />
|- <br />
| <tt>pad(int)</tt> || add blanks to the end of the current right hand string, up to a length of &lt;input&gt; number. <br />
|- <br />
| <tt>zpd(int)</tt> || add nulls (the zero byte) to the end of the current right hand string, up to a length of &lt;input&gt; number. <br />
|- <br />
| <tt>chr(int)</tt> || single string character with a bit pattern that matches the lower eight bits of &lt;input&gt; <br />
|- <br />
| <tt>ch2(int)</tt> || two character string with a bit pattern that matches the lower sixteen bits of &lt;input&gt; <br />
|- <br />
| <tt>ch4(int)</tt> || four character string with a bit pattern that matches the &lt;input&gt; <br />
|- <br />
| <tt>oct(int)</tt> || ASCII octal representation of &lt;input&gt; <br />
|- <br />
| <tt>chs(int)</tt> || ASCII decimal representation of &lt;input&gt; including the unitary minus sign <br />
|- <br />
| <tt>hex(int)</tt> || ASCII hexidecimal representation of &lt;input&gt; <br />
|- <br />
| <tt>ch8(real)</tt> || eight character string with a bit pattern that matches the &lt;input&gt; <br />
|- <br />
| <tt>chs(real,int)</tt> || ASCII decimal representation of <real input> with <int input> digits to right of decimal. Includes unitary minus sign <br />
|- <br />
| <tt>chx(real,int)</tt> || ASCII floating point representation of <real input> with <int input> digits to right of decimal. Includes unitary minus sign <br />
<br />
|- <br />
| <tt>trm(str)</tt> || input string without the trailing blanks<br />
|- <br />
| <tt>mrt(str)</tt> || input string without the leading blanks <br />
|- <br />
| <tt>lcs(str)</tt> || input string with all letters converted to lower case <br />
|- <br />
| <tt>ucs(str)</tt> || input string with all letters converted to upper case <br />
|- <br />
| <tt>rev(str)</tt> || string with characters in the reverse order from the input string<br />
<br />
|- <br />
| <tt>rpl(str,s(n,2))</tt> || create an output string from the first input string in following way: Working from left to right in the input string, search the string array s(i,1) (i = 1,...,n) for a match in the input string. If a match is found (at i), place s(i,2) in the output string and advance the test point in the input string by len(s(i,1)). If no match is found, copy the current byte to the output string and advance the test point one byte. <br />
<br />
|- <br />
| <tt>dup(str,int)</tt> || input string duplicated <int input> number of times <br />
<br />
|- <br />
| <tt>txt(s1,bs,int)</tt> || output string = s1{m..n-1} where m (>= int) is the subscript of first byte of the input string (at or beyond <int input>) which is not in the bit string set bs, and n (> m) is the subscript of the first byte of the input string (beyond m) which is in the bit string set bs. <int input> is set to the value n by this function. Essentially, characters in the bit string set bs are used to sub-divide or parse the input string. The function is designed for repeated calls until the input string is completely parsed. <br />
<br />
The format for specifying the bit string set bs is: set(bstr) where bstr is a bit string. <br />
<br />
|- <br />
| <tt>txt(s1,bs)</tt> || same as previous function, except the special variable mpt is used in place of the third input. <br />
<br />
|- <br />
| <tt>txt(s1,[ ],int)</tt> || same as the first txt function, except the set [ ] is used instead of the bit string set. <br />
<br />
|- <br />
| <tt>txt(s1,[ ])</tt> || same as the second txt function, except the set [ ] is used instead of the bit string set. <br />
<br />
|- <br />
| <tt>cby(bstr)</tt> || create output string with the same bit pattern as the input bit string (padded to the byte boundary with zeros) <br />
<br />
|- <br />
| <tt>upk(bstr,s2)</tt> || construct a string from the first &lt;input&gt; in the following way: 1 maps to s2{1} or 'x', 0 maps to s2{2} or ' '. <br />
|- <br />
| <tt>upk(bstr)</tt> || construct a string from the first &lt;input&gt; in the following way: 1 maps to 'x', 0 maps ' '. <br />
<br />
|}<br />
</center><br />
<br />
<br />
== Functions with bit string output ==<br />
<br />
<center><br />
{| class="wikitable" cellpadding="5" cellspacing="0" border="1" style="width:650px"<br />
|- {{Style|table header}}<br />
! scope="col" width="150px" | Function<br />
! scope="col" width="500px" | Output<br />
|- <br />
| <tt>npd(int)</tt> || add ones to the end of the current right hand bit-string, up to a length of &lt;input&gt; number. <br />
|- <br />
| <tt>zpd(int)</tt> || add zeros to the end of the current right hand bit-string, up to a length of &lt;input&gt; number. <br />
|- <br />
| <tt>cbi(str)</tt> || create output bit string with the same bit pattern as the input string<br />
<br />
|- <br />
| <tt>pak(s1,s2)</tt> || construct a bit string from the first input string as follows: for each byte, if byte = s2{1} put in a one, otherwise put in a zero. <br />
|- <br />
| <tt>pak(str)</tt> || construct a bit string from the input string as follows: for each byte, if byte = 'x', put in a one, otherwise put in a zero. <br />
<br />
|- <br />
| <tt>trm(bstr)</tt> || input bit string without the trailing zeros <br />
|- <br />
| <tt>mrt(bstr)</tt> || input bit string without the leading zeros <br />
|- <br />
| <tt>rev(bstr)</tt> || bit string with bits in the reverse order from the input bit string <br />
|- <br />
| <tt>cmp(bstr)</tt> || 1's complement of input bit string <br />
<br />
|- <br />
| <tt>dup(bstr,int)</tt> || input bit string duplicated &lt;int input&gt; number of times <br />
<br />
|- <br />
| <tt>bnd(bstr,bstr)</tt> || output = intersection of two inputs <br />
|- <br />
| <tt>bor(bstr,bstr)</tt> || output = union of two inputs <br />
<br />
|}<br />
</center><br />
<br />
<br />
== Function with a set output ==<br />
<br />
<center><br />
{| class="wikitable" cellpadding="5" cellspacing="0" border="1" style="width:650px"<br />
|- {{Style|table header}}<br />
! scope="col" width="150px" | Function<br />
! scope="col" width="500px" | Output<br />
|- <br />
| <tt>set(bstr)</tt> || create a set in the following way: Pad the input bit string with zeros up to a length of 256. For each of the 256 bits in the bit string, if the bit is a one, add the number of the position to the set; if the bit is a zero, do not add the number of the position to the set. <br />
|}<br />
</center><br />
<br />
<br />
== Overloaded output ==<br />
<br />
There are thirteen sets of ambiguous functions. In each case, there is a way for the compiler to distinguish which function is being called. <br />
<br />
<center><br />
{| class="wikitable" cellpadding="0" cellspacing="0" border="0" style="background-color:white;"<br />
|- {{Style|table header}}<br />
! <br />
! scope="column" align="left" | Function<br />
! scope="column" align="left" colspan="2" | Output<br>Type<br />
|- <br />
| 1. || <tt>rnd(int)</tt> || int || distinguished by <br />
|- <br />
| || <tt>rnd(real)</tt> || real ||output type.<br />
<br />
|- <br />
| 2. || <tt>abs(int)</tt> || int || distinguished by <br />
|- <br />
| || <tt>abs(real)</tt> || real || output type.<br />
<br />
|- <br />
| 3. || <tt>len(str)</tt> || int || distinguished by <br />
|- <br />
| || <tt>len(bstr)</tt> || int ||input variable type. <br />
<br />
|- <br />
| 4. || <tt>flt(int)</tt> || real || distinguished by <br />
|- <br />
| || <tt>flt(str)</tt> || real ||input variable type. <br />
<br />
|- <br />
| 5. || <tt>zpd(int)</tt> || str || distinguish by <br />
|- <br />
| || <tt>zpd(int)</tt> || bstr ||output type.<br />
<br />
|- <br />
| 6. || <tt>chs(int)</tt> || str || distinguish by number <br />
|- <br />
| || <tt>chs(real,int)</tt>|| str ||of arguments.<br />
<br />
|- <br />
| 7. || <tt>trm(str)</tt> || str || distinguish by <br />
<br />
|- <br />
| || <tt>trm(bstr)</tt> || bstr ||output type.<br />
<br />
|- <br />
| 8. || <tt>mrt(str)</tt> || str || distinguish by <br />
|- <br />
| || <tt>mrt(bstr)</tt> || bstr ||output type.<br />
<br />
|- <br />
| 9. || <tt>rev(str)</tt> || str || distinguish by <br />
|- <br />
| || <tt>rev(bstr)</tt> || bstr ||output type.<br />
<br />
|- <br />
| 10.|| <tt>dup(str)</tt> || str || distinguish by <br />
|- <br />
| || <tt>dup(bstr)</tt> || bstr ||output type.<br />
<br />
|- <br />
| 11.|| <tt>txt(s1,bs,int)</tt>|| str || distinguish by type <br />
|- <br />
| || <tt>txt(s1,bs)</tt> || str ||of second argument <br />
|- <br />
| || <tt>txt(s1,[ ],int)</tt> || str ||and by presence <br />
|- <br />
| || <tt>txt(s1,[ ])</tt> || str ||of third argument.<br />
<br />
|- <br />
| 12.|| <tt>upk(bstr,s2)</tt> || str || distinguish by number <br />
|- <br />
| || <tt>upk(bstr)</tt> || str ||of arguments.<br />
<br />
|- <br />
| 13.|| <tt>upk(s1,s2)</tt> || str || distinguish by number <br />
|- <br />
| || <tt>upk(str)</tt> || str ||of arguments.<br />
|}<br />
</center><br />
<br />
<br />
== Function example usage ==<br />
<br />
We include some examples of how various functions work. The focus is mainly on those functions whose operation may not be clear from the description. <br />
<br />
<br />
=== tst(table) ===<br />
<br />
The tst(table) function. This function reports on the number of enteries in the table, and resets the counter for the sequentail version of the tget command. To demonstrate this function, we must fill a table with some items and use the sequential version of tget to retrieve them. <br />
<br />
Program <br />
--------------------- <br />
str a.10,b.10 <br />
int i <br />
table X(1000) <br />
<br />
loop for i = 1 to 10 /* create 10 entries in table <br />
a = "Key " // chs(i) /* str a will contain the "key" <br />
tput [X,a] Item ~i <br />
repeat <br />
<br />
loop for i = 1 to 3 /* get first 3 entries <br />
tget [X] a b <br />
putc ~a ~b <br />
repeat <br />
i = tst(X) <br />
putc Number of entries = ~i <br />
loop for i = 1 to 3 /* check to see that sequential <br />
tget [X] a b /* counter has been reset <br />
putc ~a ~b <br />
repeat <br />
run <br />
<br />
Execution <br />
------------------------------------- <br />
** S=18, P=79, L=253, M=1418 ** <br />
Key 1 Item 1 <br />
Key 2 Item 2 <br />
Key 3 Item 3 <br />
Number of entries = 10 <br />
Key 1 Item 1 <br />
Key 2 Item 2 <br />
Key 3 Item 3 <br />
Ready for program <br />
<br />
=== tdx(table,str) ===<br />
<br />
The tdx(table,str) function. This function provides the index number in a table for a given "key". The number is 0 if there is no such key in the table. To demonstrate this function, we must fill a table with some key/record pairs and then use the tdx function to get their index numbers. <br />
<br />
Program <br />
--------------------- <br />
str a.10,b.10 <br />
int i,j <br />
table X(1000) <br />
<br />
loop for i = 1 to 10 /* create 10 entries in table <br />
a = "Key " // chs(i) /* str a will contain the "key" <br />
tput [X,a] Item ~i <br />
repeat <br />
<br />
loop for i = 1 to 3 /* get index for first 3 entries <br />
a = "Key " // chs(i) <br />
j = tdx(X,a) <br />
putc key = ~a index = .w4 ~j ... <br />
tget [X,j] b /* retrieve record via index <br />
putc record = ~b <br />
repeat <br />
run <br />
<br />
Execution <br />
------------------------------------- <br />
** S=15, P=75, L=255, M=1418 ** <br />
key = Key 1 index = 313 record = Item 1 <br />
key = Key 2 index = 58 record = Item 2 <br />
key = Key 3 index = 187 record = Item 3 <br />
Ready for program <br />
<br />
=== fix(real) ===<br />
<br />
The fix(real) function. The reason we need this function is that Zbex does not automatically convert real numbers to integers. <br />
<br />
<br />
Program <br />
--------------------- <br />
int i <br />
real x <br />
<br />
x = 456.789 <br />
i = fix(x) <br />
putc real input = ~x integer output = ~i <br />
run <br />
<br />
Execution <br />
------------------------------------- <br />
** S=6, P=28, L=236, M=410 ** <br />
real input = 456.79 integer output = 456 <br />
Ready for program <br />
<br />
=== len(str) ===<br />
<br />
The len(str) function. When used on the right hand side of an assignment statement, this function gives the length of the string argument. What makes this function unusual is that it can also be used on the left hand side of an assignment statement to set the length of a string. This is particularly valuable when we use a string as a buffer for the read instruction, since the size of the block read = the length of the string. <br />
<br />
Program <br />
--------------------- <br />
str a.80 <br />
int i <br />
<br />
a = "For the last time, Mr. Smee, take the princess home!" <br />
i = len(a) <br />
putc Length of string a is ~i <br />
len(a) = 28 <br />
i = len(a) <br />
putc New length of string a is ~i <br />
putc String a = "~a " <br />
run <br />
<br />
Execution <br />
------------------------------------- <br />
** S=10, P=59, L=255, M=431 ** <br />
Length of string a is 52 <br />
New length of string a is 28 <br />
String a = "For the last time, Mr. Smee," <br />
Ready for program <br />
<br />
=== int(str) ===<br />
<br />
The int(str) function. This function reads a group of digits in a string and returns their value as an integer. The setting of the special variable sub to the subscript of the the terminating (non-digit) byte in the string allows this function to be called again to get the next number in the string. <br />
<br />
Program <br />
--------------------- <br />
str a.80 <br />
int i <br />
<br />
a = "1000 500 -39 465 678687" <br />
putc Getting numbers from a string <br />
putc a = "~a " <br />
putc Numbers <br />
putc ------- <br />
sub = 0 <br />
loop while sub &lt; len(a) <br />
i = int(a{sub+1..}) <br />
putc .w7 ~i .w2t20 (terminating subscript = ~sub ) <br />
repeat <br />
run <br />
<br />
Execution <br />
------------------------------------- <br />
** S=13, P=72, L=248, M=431 ** <br />
Getting numbers from a string <br />
a = "1000 500 -39 465 678687" <br />
Numbers <br />
------- <br />
1000 (terminating subscript = 5) <br />
500 (terminating subscript = 10) <br />
-39 (terminating subscript = 19) <br />
465 (terminating subscript = 25) <br />
678687 (terminating subscript = 32) <br />
Ready for program <br />
<br />
=== ors(str) ===<br />
<br />
The ors(str) function. This function reads the first four bytes of the string argument (less if the string is shorter) and creates an integer value from the bit pattern. <br />
<br />
Program <br />
--------------------- <br />
str a.4 <br />
int i <br />
<br />
a = "." <br />
i = ors(a) <br />
putc a = "~a " .t13 i = ~i .t30x (hex ~i ) <br />
a = ".1" <br />
i = ors(a) <br />
putc a = "~a " .t13 i = ~i .t30x (hex ~i ) <br />
a = ".123" <br />
i = ors(a) <br />
putc a = "~a " .t13 i = ~i .t30x (hex ~i ) <br />
run <br />
<br />
Execution <br />
------------------------------------- <br />
** S=12, P=95, L=249, M=412 ** <br />
a = "." i = 46 (hex 2e) <br />
a = ".1" i = 11825 (hex 2e31) <br />
a = ".123" i = 774976051 (hex 2e313233) <br />
Ready for program <br />
<br />
<br />
=== pad(int) ===<br />
<br />
The pad(int) function. This function adds blanks to the end of the string on the right hand side of an assignment statement up to the length specified by the integer argument. If the string is already longer than the specified length, nothing is done. <br />
<br />
Program <br />
--------------------- <br />
str a.80,b.80 <br />
int i <br />
<br />
a = "This is a short string" <br />
b = "This is a slightly longgggerrrrrr string" <br />
putc a = "~a " <br />
a = a // pad(30) <br />
putc a = "~a " <br />
putc b = "~b " <br />
b = b // pad(30) <br />
putc b = "~b " <br />
run <br />
<br />
Execution <br />
------------------------------------- <br />
** S=11, P=54, L=262, M=452 ** <br />
a = "This is a short string" <br />
a = "This is a short string " <br />
b = "This is a slightly longgggerrrrrr string" <br />
b = "This is a slightly longgggerrrrrr string" <br />
Ready for program <br />
<br />
=== ch4(int) ===<br />
<br />
The ch4(int) function. This function is the opposite of the ors function. It creates a four byte string from the bit pattern of the integer argument. <br />
<br />
Program <br />
--------------------- <br />
str a.4 <br />
int i <br />
<br />
i = 0x31323334 /* this is hexidecimal notation <br />
a = ch4(i) <br />
putc a = "~a " <br />
run <br />
<br />
Execution <br />
------------------------------------- <br />
** S=6, P=19, L=237, M=412 ** <br />
a = "1234" <br />
Ready for program <br />
<br />
=== chs(int) ===<br />
<br />
The chs(int) function. This function constructs a string which is the ASCII decimal representation of the integer argument. We illustrate also the hex(int) function here. <br />
<br />
Program <br />
--------------------- <br />
str a.80,b.80 <br />
int i <br />
<br />
a = "" <br />
b = "" <br />
loop for i = 500 to -300 step -100 <br />
a = a // chs(i) // " " <br />
b = b // hex(i) // " " <br />
repeat <br />
putc a = "~a " <br />
putc b = "~b " <br />
run <br />
<br />
Execution <br />
------------------------------------- <br />
** S=11, P=55, L=247, M=452 ** <br />
a = "500 400 300 200 100 0 -100 -200 -300 " <br />
b = "1f4 190 12c c8 64 0 ffffff9c ffffff38 fffffed4 " <br />
Ready for program <br />
<br />
=== rpl(str,s(n,2)) ===<br />
<br />
The rpl(str,s(n,2)) function. This somewhat unwieldy function is intended to facilitate the translation of certain string patterns into alternate string patterns for large blocks of text at a time. rpl is short for replace. The second argument is an array of patterns and their replacements. <br />
<br />
Program <br />
--------------------- <br />
str a.500, b.500, c.10(1,2) <br />
<br />
/* set up initial string for testing <br />
<br />
a = "The purpose of this function is to facilitateCRthe" <br />
a = a // " translation of certain string patterns intoCRother" <br />
a = a // " string patterns. In this example, we willCRchange" <br />
a = a // " a code for carriage return into the escapeCR" <br />
a = a // "sequences which will generate real carriageCR" <br />
a = a // "returns.CR" <br />
<br />
/* set up conversion matrix <br />
<br />
c(1,1) = "CR" <br />
c(1,2) = chr(27) // "S" // chr(27) // "Y" <br />
<br />
/* do the translation <br />
<br />
b = rpl(a,c) <br />
<br />
/* display results <br />
<br />
putc ~b <br />
run <br />
<br />
Execution <br />
------------------------------------- <br />
The purpose of this function is to facilitate <br />
the translation of certain string patterns into <br />
other string patterns. In this example, we will <br />
change a code for carriage return into the escape <br />
sequences which will generate real carriage <br />
returns. <br />
<br />
Ready for program <br />
<br />
<br />
=== txt(st1,bs,int) ===<br />
<br />
The txt(s1,bs,int) function. This is the most complicated of the four forms of the txt function. The purpose of this function is to allow the rapid parsing of strings, based on a set of bytes one might call "delimiter bytes." In this version of the function, the set is determined by a bit string. <br />
<br />
Program <br />
--------------------- <br />
str a.100, b.100 <br />
bstr pset.256 <br />
int i <br />
<br />
a = "Let us, please, ignor (i.e., disregard) all" <br />
a = a // " non-alpha characters in our parse!! O.K.?" <br />
<br />
pset = npd(65) // zpd(91) // npd(97) // zpd(123) // npd(256) <br />
<br />
i = 0 <br />
loop while i &lt; len(a) <br />
b = txt(a, set(pset), i) <br />
b = txt(a, [0..64,91..96,122..255], i) will also work <br />
if b &lt;&gt; "" <br />
putc ~b <br />
end <br />
repeat <br />
run <br />
<br />
Execution <br />
------------------------------------- <br />
** S=14, P=52, L=283, M=471 ** <br />
Let <br />
us <br />
please <br />
ignor <br />
i <br />
e <br />
disregard <br />
all <br />
non <br />
alpha <br />
characters <br />
in <br />
our <br />
parse <br />
O <br />
K <br />
Ready for program <br />
<br />
=== upk(bstr,s2) ===<br />
<br />
The upk(bstr,s2) function. This function creates a string with two types of characters. The pattern matches that of the bit string argument. <br />
<br />
Program <br />
--------------------- <br />
str a.50,b.2 <br />
bstr pattern.50(10) <br />
int i <br />
<br />
b = "&#9618;&#9608;" <br />
<br />
pattern(1) = "0001111111000" <br />
pattern(2) = "0111111111110" <br />
pattern(3) = "1110000000111" <br />
pattern(4) = "1100110110011" <br />
pattern(5) = "1100001000011" <br />
pattern(6) = "1100100010011" <br />
pattern(7) = "0110011100110" <br />
pattern(8) = "0111000001110" <br />
pattern(9) = "0001111111000" <br />
<br />
loop for i = 1 to 9 <br />
a = upk(pattern(i), b) <br />
putc ~a <br />
repeat <br />
run <br />
<br />
Execution <br />
&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552; <br />
** S=18, P=90, L=267, M=456 ** <br />
<span style="color:black; background-color:#00ff00">&#9608;&#9608;&#9608;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9608;&#9608;&#9608;</span> <br />
<span style="color:black; background-color:#00ff00">&#9608;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9608;</span> <br />
<span style="color:black; background-color:#00ff00">&#9618;&#9618;&#9618;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9618;&#9618;&#9618;</span> <br />
<span style="color:black; background-color:#00ff00">&#9618;&#9618;&#9608;&#9608;&#9618;&#9618;&#9608;&#9618;&#9618;&#9608;&#9608;&#9618;&#9618;</span> <br />
<span style="color:black; background-color:#00ff00">&#9618;&#9618;&#9608;&#9608;&#9608;&#9608;&#9618;&#9608;&#9608;&#9608;&#9608;&#9618;&#9618;</span> <br />
<span style="color:black; background-color:#00ff00">&#9618;&#9618;&#9608;&#9608;&#9618;&#9608;&#9608;&#9608;&#9618;&#9608;&#9608;&#9618;&#9618;</span> <br />
<span style="color:black; background-color:#00ff00">&#9608;&#9618;&#9618;&#9608;&#9608;&#9618;&#9618;&#9618;&#9608;&#9608;&#9618;&#9618;&#9608;</span> <br />
<span style="color:black; background-color:#00ff00">&#9608;&#9618;&#9618;&#9618;&#9608;&#9608;&#9608;&#9608;&#9608;&#9618;&#9618;&#9618;&#9608;</span> <br />
<span style="color:black; background-color:#00ff00">&#9608;&#9608;&#9608;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9608;&#9608;&#9608;</span> <br />
Ready for program</div>Craig