GnuCOBOL core library with string functions
Repository: https://github.com/OlegKunitsyn/core-string.git
Dependency | Version | Debug |
---|---|---|
gcblunit | * | Yes |
GnuCOBOL 3.x core library with string functions
Name | Description |
---|---|
substr-pos | Find the position of the first occurrence of a substring in a string. Case-sensitive. |
substr-pos-case | Find the position of the first occurrence of a substring in a string. Case-insensitive. |
byte-to-hex | Convert one byte into hexadecimal representation. |
hex-to-byte | Convert one byte into hexadecimal representation. |
substr-count | Count the number of substring occurrences. Case-sensitive. |
substr-count-case | Count the number of substring occurrences. Case-insensitive. |
sha3-256 | Generate SHA3-256 message digest |
sha3-512 | Generate SHA3-512 message digest |
urlencoded-to-byte | Convert urlencoded symbol into one byte. |
byte-to-urlencoded | Convert one byte into urlencoded symbol. |
csv-ecb-rates | Convert ECB exchange rates in CSV format to the list of currency-rate pairs. https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html |
substr-pos(l-haystack, l-needle)
Find the position of the first occurrence of a substring in a string. Case-sensitive.
l-haystack String to search in l-needle String to search for
Position where the needle exists relative to the beginnning of l-haystack. Returns 0 if not found.
substr-pos-case(l-haystack, l-needle)
Find the position of the first occurrence of a substring in a string. Case-insensitive.
l-haystack String to search in l-needle String to search for
Position where the needle exists relative to the beginnning of l-haystack. Returns 0 if not found.
byte-to-hex(l-byte)
Convert one byte into hexadecimal representation.
l-byte Byte
2 hexadecimal chars
hex-to-byte(l-hex)
Convert one byte into hexadecimal representation.
l-hex 2 hexadecimal chars
Byte
substr-count(l-haystack, l-needle)
Count the number of substring occurrences. Case-sensitive.
l-haystack String to search in l-needle String to search for
Number of occurrences
substr-count-case(l-haystack, l-needle)
Count the number of substring occurrences. Case-insensitive.
l-haystack String to search in l-needle String to search for
Number of occurrences
sha3-256(l-buffer)
Generate SHA3-256 message digest
l-buffer Input bytes
64 hexadecimal chars
sha3-512(l-buffer)
Generate SHA3-512 message digest
l-buffer Input bytes
128 hexadecimal chars
urlencoded-to-byte(l-symbol)
Convert urlencoded symbol into one byte.
l-symbol Urlencoded symbol (3 bytes)
Byte
byte-to-urlencoded(l-byte)
Convert one byte into urlencoded symbol.
l-byte Byte
Urlencoded symbol (3 bytes)
csv-ecb-rates(l-byte)
Convert ECB exchange rates in CSV format to the list of currency-rate pairs. https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html
l-byte CSV string
Urlencoded symbol Pointer to the list of 64 [pic x(3), pic 9(7)V9(8)] elements
Install and initialize COBOL Package Manager:
$ npm install -g cobolget
$ cobolget init
Add the package to the Manifest
:
$ cobolget add core-string
$ cobolget update
Install the package and its dependencies:
$ cobolget install
....
Modules modules.cpy and modules.cbl updated.
Directory modules
contains complete COBOL source-code and modules.cpy
Copybook ready for inclusion into your project.
Dependency | Version | Debug |
---|---|---|
gcblunit | * | Yes |
GnuCOBOL 2.x core library with string functions
Install and initialize COBOL Package Manager:
$ npm install -g cobolget
$ cobolget init
Add the package to the Manifest
:
$ cobolget add core-string
$ cobolget update
Install the package and its dependencies:
$ cobolget install
....
Modules modules.cpy and modules.cbl updated.
Directory modules
contains complete COBOL source-code and modules.cpy
Copybook ready for inclusion into your project.
See coboldoc documentation.
Dependency | Version | Debug |
---|---|---|
gcblunit | * | Yes |
GnuCOBOL core library with string functions
Install and initialize COBOL Package Manager:
$ npm install -g cobolget
$ cobolget init
Add the package to the Manifest
:
$ cobolget add core-string
$ cobolget update
Install the package and its dependencies:
$ cobolget install
....
Modules modules.cpy and modules.cbl updated.
Directory modules
contains complete COBOL source-code and modules.cpy
Copybook ready for inclusion into your project.
See coboldoc documentation.
Dependency | Version | Debug |
---|---|---|
gcblunit | * | Yes |
GnuCOBOL 2.x core library with string functions
Install and initialize COBOL Package Manager:
$ npm install -g cobolget
$ cobolget init
Add the package to the Manifest
:
$ cobolget add core-string
$ cobolget update
Install the package and its dependencies:
$ cobolget install
....
Copybook modules.cpy updated.
Directory modules
contains complete COBOL source-code and modules.cpy
Copybook ready for inclusion into your project.
See coboldoc documentation.
Dependency | Version | Debug |
---|---|---|
gcblunit | * | Yes |
GnuCOBOL core library with string functions
Find the position of the first occurrence of a substring in a string. Case-sensitive.
Find the position of the first occurrence of a substring in a string. Case-insensitive.
Convert one byte into hexadecimal representation.
Convert one byte into hexadecimal representation.
Count the number of substring occurrences. Case-sensitive.
Count the number of substring occurrences. Case-insensitive.
Generate SHA3-256 message digest
Generate SHA3-512 message digest
Convert urlencoded symbol into one byte.
Convert one byte into urlencoded symbol.
Convert ECB exchange rates in CSV format to the list of currency-rate pairs.
https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html
If you have found an issue or a vulnerability, please submit the report below