-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix C++ to pass jsonization of concrete classes (#444)
We fix the C++ generator so that the generator code passes all the tests related to jsonization of concrete classes.
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
dev_scripts/replace-curly-brackets-backslashes-and-two-space-indent.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<html> | ||
<head> | ||
<title>Replace curly brackets, backslashes and indent</title> | ||
<script> | ||
function processInput() { | ||
var input = document.getElementById("input"); | ||
var output = document.getElementById("output"); | ||
|
||
var text = input.value | ||
.replaceAll("{", "{{") | ||
.replaceAll("}", "}}") | ||
.replaceAll(/^ /gm, "{IIIII}") | ||
.replaceAll(/^ /gm, "{IIII}") | ||
.replaceAll(/^ /gm, "{III}") | ||
.replaceAll(/^ /gm, "{II}") | ||
.replaceAll(/^ /gm, "{I}") | ||
.replaceAll("\\", "\\\\"); | ||
|
||
output.value = text; | ||
} | ||
|
||
function copyOutput() { | ||
var output = document.getElementById("output"); | ||
output.select(); | ||
document.execCommand("copy"); | ||
} | ||
|
||
window.onload = function() { | ||
processInput(); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<textarea id="input" cols="120" rows="10" oninput="processInput()"></textarea> | ||
<br/><br/><br/> | ||
<textarea id="output" cols="120" rows="10" readonly></textarea> | ||
<br/><br/><br/> | ||
<button onclick="copyOutput()">Copy</button> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters