https://github.com/lexz-08/stringcounter
It's a C# library that adds extension methods to strings to do a couple cool things.
https://github.com/lexz-08/stringcounter
csharp java-to-csharp string-methods windows word-beginnings-counter word-counter
Last synced: 6 months ago
JSON representation
It's a C# library that adds extension methods to strings to do a couple cool things.
- Host: GitHub
- URL: https://github.com/lexz-08/stringcounter
- Owner: Lexz-08
- Created: 2021-11-06T01:53:25.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-06T04:59:44.000Z (about 4 years ago)
- Last Synced: 2025-01-07T14:25:18.295Z (12 months ago)
- Topics: csharp, java-to-csharp, string-methods, windows, word-beginnings-counter, word-counter
- Language: C#
- Homepage: https://github.com/Lexz-08/StringCounter/
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## StringCounter
### Description
It's a C# library that adds extension methods to strings to do a couple cool things.
### What It Does
This library (when provided with a string obviously) will allow the programmer to count the # of words in a string or get the first letter of each word.
This can be useful if you're trying to make a program that tells the user how many words they've typed.
```csharp
using StringCounter;
using System;
public class Program
{
public static void Main(string[] args)
{
string sentence = "'; The quick BROWN FOX jUmPeD over the LaZy dOG;.";
Console.WriteLine(sentence);
// output: '; The quick BROWN FOX jUmPeD over the LaZy dOG;.
Console.WriteLine("\nThe sentence above has {0} words.", sentence.CountWords());
// output: The sentence above has 9 words.
Console.WriteLine("\nWord Beginnings:");
Console.WriteLine(sentence.GetWordBeginnings());
// output: Word Beginnings:
// output: T, q, B, F, j, o, t, L, d
// total output
/*
'; The quick BROWN FOX jUmPeD over the LaZy dOG;.
The sentence above has 9 words.
Word Beginnings:
T, q, B, F, j, o, t, L, d
*/
}
}
```
### Download (C# Library)
[StringCounter.dll](https://github.com/Lexz-08/StringCounter/releases/download/string-counter/StringCounter.dll)
### Download (C# Library / Console To Test DLL)
[StringCounter.zip](https://github.com/Lexz-08/StringCounter/releases/download/string-counter/StringCounter.zip)