Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added myeasylog.log
Empty file.
16 changes: 16 additions & 0 deletions public/usage-examples/utilities/base64_encode-1-example-oop.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using SplashKitSDK;

namespace Base64EncodeExample
{
public class Program
{
public static void Main()
{
string input = "Hello World";
string encoded = SplashKit.Base64Encode(input);

SplashKit.WriteLine("Original: " + input);
SplashKit.WriteLine("Encoded: " + encoded);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using SplashKitSDK;
using static SplashKitSDK.SplashKit;

string input = "Hello World";
string encoded = Base64Encode(input);

WriteLine("Original: " + input);
WriteLine("Encoded: " + encoded);
12 changes: 12 additions & 0 deletions public/usage-examples/utilities/base64_encode-1-example.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "splashkit.h"

int main()
{
string input = "Hello World";
string encoded = base64_encode(input);

write_line("Original: " + input);
write_line("Encoded: " + encoded);

return 0;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/usage-examples/utilities/base64_encode-1-example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from splashkit import *

input_str = "Hello World"
encoded = base64_encode(input_str)

write_line("Original: " + input_str)
write_line("Encoded: " + encoded)
2 changes: 2 additions & 0 deletions public/usage-examples/utilities/base64_encode-1-example.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Base64 Encode Example
Encodes a string to Base64 format.
1 change: 1 addition & 0 deletions scripts/api-pages-script.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ for (const categoryKey in jsonData) {
const hasSymbol = (hasExampleInGroup || hasGuideInGroup || hasExampleReferenceInGroup) ? `  {</>}` : "";
const formattedGroupLink = `${formattedLink}-functions`;

mdxContent += `\n<span id="${formattedLink}"></span>\n`;
mdxContent += `\n### [${formattedFunctionName}](#${formattedGroupLink})${hasSymbol} \\{#${formattedGroupLink}\\}\n\n`;

mdxContent += ":::note\n\n";
Expand Down
Loading