Skip to content

Commit 9a2f792

Browse files
readme update
1 parent b3c6d79 commit 9a2f792

1 file changed

Lines changed: 40 additions & 13 deletions

File tree

README.md

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,53 @@ Try the library [online here](https://repo.progsbase.com/repoviewer/no.inductive
1313

1414
## Available in the Following Languages
1515

16-
[TypeScript](TypeScript/) |
17-
[Java](Java/) |
18-
[C](C/) |
19-
[C++](Cpp/) |
20-
[JavaScript](JavaScript/) |
21-
[PHP](PHP/) |
22-
[C#](CS/) |
23-
[Python](Python/) |
24-
[Ruby](Ruby/) |
25-
[Visual Basic](VisualBasic/)
26-
16+
* [TypeScript](TypeScript/)
17+
* [Java](Java/)
18+
* [C](C/)
19+
* [C++](Cpp/)
20+
* [JavaScript](JavaScript/)
21+
* [PHP](PHP/)
22+
* [C#](CS/)
23+
* [Python](Python/)
24+
* [Ruby](Ruby/)
25+
* [Visual Basic](VisualBasic/)
2726

2827
## Main Function
2928
The library is available in the programming languages above. The main function for using a template is as follows:
3029

3130
```
32-
boolean GenerateDocument(char [] template, char [] json, StringReference document, StringReference errorMessage);
31+
TypeScript:
32+
function GenerateDocument(template : string [], json : string [], document : StringReference, errorMessage : StringReference) : boolean
33+
34+
Java:
35+
boolean GenerateDocument(char [] template, char [] json, StringReference document, StringReference errorMessage)
36+
37+
C:
38+
_Bool GenerateDocument(wchar_t *template, size_t templateLength, wchar_t *json, size_t jsonLength, StringReference *document, StringReference *errorMessage)
39+
40+
C++:
41+
bool GenerateDocument(vector<wchar_t> *templatex, vector<wchar_t> *json, StringReference *document, StringReference *errorMessage)
42+
43+
JavaScript:
44+
function GenerateDocument(template, json, document, errorMessage)
45+
46+
PHP:
47+
function GenerateDocument(&$template, &$json, $document, $errorMessage)
48+
49+
C#:
50+
bool GenerateDocument(char [] template, char [] json, StringReference document, StringReference errorMessage)
51+
52+
Python:
53+
def GenerateDocument(template, json, document, errorMessage)
54+
55+
Ruby:
56+
def GenerateDocument(template, json, document, errorMessage)
57+
58+
Visual Basic:
59+
Function GenerateDocument(ByRef template As Char (), ByRef json As Char (), ByRef document As StringReference, ByRef errorMessage As StringReference) As Boolean
3360
```
3461

35-
This function takes a template string `template` and JSON string `json`. It returns true on success or false on failure. On success, `document.string` is set to the result; on failure `errorMessage.string` is filled with an error message.
62+
This function works exactly the same way in all the languages. It takes a template string `template` and JSON string `json`. It returns true on success or false on failure. On success, `document.string` is set to the result; on failure `errorMessage.string` is filled with an error message.
3663

3764

3865
## General About Templates

0 commit comments

Comments
 (0)