Adds a CSharp Style String Object, and namespace emulating much of the syntax C# uses to manipulate strings.
Project description
CSharpString
A general class that provides dot-net style syntax for python string manipulations.
Static & Instance Namespaces
To more easily seperate the objective, from non-objective functionality there are two classes internally that can be used.
- csharpstring.instance
- csharpstring.static
Instance Methods
` value1 = instance("The quick brown fox"); print(value1)
The quick brown fox value2 = instance("jumped over the lazy dog"); print(value2) jumped over the lazy dog value3 = value1.Append(value2); print(value3) The quick brown fox jumped over the lazy dog value4 = value3.Substr(10,30); brown fox jumped ove value5 = value3.Replace("quick", "speedy"); print(value5) The speedy brown fox jumped over the lazy dog `
Static Methods
` date = "10/31/22"; time = "8:30 PM"; print(static.Format("It is $0 on $1; do you know where your children are?", time, date)); print(static.Join(" ", value1, value2));
It is 8:30 PM on 10/31/22; do you know where your children are? The quick brown fox jumped over the lazy dog `
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file csharpstring-0.0.1.tar.gz.
File metadata
- Download URL: csharpstring-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78e8dfad0b5765df4a74b7a076adfaccb39782d8ef4c9e74491f0eb2927dc171
|
|
| MD5 |
185a8ddb9484319ccc7e22eab162bfa8
|
|
| BLAKE2b-256 |
d9ee5bc00f8d40c6ba1068bfb4fb61e1bbd61627934cb84e4a36472f72937a80
|
File details
Details for the file csharpstring-0.0.1-py3-none-any.whl.
File metadata
- Download URL: csharpstring-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1586abb7575a4ce5c262ae3bb9f54c2e32cdaf5122a169064e4c1f0138cd7b42
|
|
| MD5 |
f020ee2498ceaf5557fe66733ffdca07
|
|
| BLAKE2b-256 |
d007d4b0a0bc7aa90f183e2e1bb7e9f0ab5bdd665eadfc5397fa66a0954ef693
|