Skip to content

Commit

Permalink
Merge pull request #1430 from MitrahSoft/Added_examples_12/04/2024
Browse files Browse the repository at this point in the history
Added a examples for lucee docs
  • Loading branch information
zspitzer authored Apr 15, 2024
2 parents d1c8be8 + 185560d commit 7fb390e
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/03.reference/01.functions/findlast/_examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```luceescript+trycf
sentences="Swansea Jack was a black retriever with a longish coat. He lived in the North Dock / River Tawe area of Swansea, what gave him the name of Swansea Jack. Swansea Jack's first rescue, in June 1931, when he saved a 12-year-old boy, went unreported.";
dump( right( sentences, len( sentences )- sentences.findlast( "Swansea Jack" ) + 1 ) );
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Maintains the case of document elements and attributes
1 change: 1 addition & 0 deletions docs/03.reference/01.functions/metaphone/_arguments/str.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The input string
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Query object to get data from.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
If false, then the string will not be encoded if it does not contain unsafe characters.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Index of XML child element for which to search
13 changes: 13 additions & 0 deletions docs/03.reference/05.objects/image/readbase64/_examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
```luceescript+trycf
imgObj = imageReadBase64('data:image/jpg;base64,/9j/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ
EBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
QEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAAUCAAUABQEASIAAhEBAxEBBCIA/8QAHwAAAQUBAQEBAQE
AAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0
fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJ
WWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwE
BAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKR
obHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhY
aHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9o
ADgQBAAIRAxEEAAA/APxfooor/Kc/7+D+/iiiiiiiigAooooooooAKKKKKKKKACiiiv/Z');
cfimage(action="writeToBrowser", source=imgObj);
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
If false, then the string will not be encoded if it does not contain unsafe characters.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Whether to show an error if the key does not exist

0 comments on commit 7fb390e

Please sign in to comment.