Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,11 +0,0 @@
|
|||
with Ada.Strings.Fixed, Ada.Text_IO;
|
||||
use Ada.Strings, Ada.Text_IO;
|
||||
procedure String_Replace is
|
||||
Original : constant String := "Mary had a @__@ lamb.";
|
||||
Tbr : constant String := "@__@";
|
||||
New_Str : constant String := "little";
|
||||
Index : Natural := Fixed.Index (Original, Tbr);
|
||||
begin
|
||||
Put_Line (Fixed.Replace_Slice (
|
||||
Original, Index, Index + Tbr'Length - 1, New_Str));
|
||||
end String_Replace;
|
||||
|
|
@ -1 +0,0 @@
|
|||
Put_Line ("Mary had a " & New_Str & " lamb.");
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
IDENTIFICATION DIVISION.
|
||||
PROGRAM-ID. interpolation-included.
|
||||
|
||||
DATA DIVISION.
|
||||
WORKING-STORAGE SECTION.
|
||||
01 extra PIC X(6) VALUE "little".
|
||||
|
||||
PROCEDURE DIVISION.
|
||||
DISPLAY FUNCTION SUBSTITUTE("Mary had a X lamb.", "X", extra)
|
||||
|
||||
GOBACK
|
||||
.
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import extensions;
|
||||
|
||||
public program()
|
||||
public Program()
|
||||
{
|
||||
var s := "little";
|
||||
console.printLineFormatted("Mary had a {0} lamb.",s).readChar()
|
||||
Console.printLineFormatted("Mary had a {0} lamb.",s).readChar()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
(let ((little "little"))
|
||||
(format "Mary had a %s lamb." little)
|
||||
;; message takes a format string as argument
|
||||
(message "Mary had a %s lamb." little))
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
constant lambType = "little"
|
||||
sequence s
|
||||
s = sprintf("Mary had a %s lamb.",{lambType})
|
||||
puts(1,s)
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
class Program {
|
||||
static function main() {
|
||||
var extra = 'little';
|
||||
var formatted = 'Mary had a $extra lamb.';
|
||||
Sys.println(formatted);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
$extra = "little"
|
||||
"Mary had a {0} lamb." -f $extra
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
$extra = "little"
|
||||
[console]::writeline("Mary had a {0} lamb.", $extra)
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
$extra = "little"
|
||||
[string]::Format("Mary had a {0} lamb.", $extra)
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
str: "Mary had a <%size%> lamb"
|
||||
size: "little"
|
||||
build-markup str
|
||||
|
||||
;REBOL3 also has the REWORD function
|
||||
str: "Mary had a $size lamb"
|
||||
reword str [size "little"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue