| Clean Architecture Toolkit for .NET | |||||
|
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications. It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design. |
|
||||
|
| HOME | MODULE OVERVIEW | DEMO | CAT.EXTENSIONS | |
|||||
Code Reference
» Cat.String.Extensions Assembly » Cat.String.Extensions Namespace » StringExtensions Class
StringExtensions.FindBraceIndex(string, char, int, int) Method
Finds the index of the next unescaped occurrence of brace, treating a doubled brace as an escape.
private static int FindBraceIndex(string format, char brace, int startIndex, int endIndex);
Parameters
format System.String
The format string to scan.
brace System.Char
The brace character to find, either '{' or '}'.
startIndex System.Int32
The index to start scanning from.
endIndex System.Int32
The index to stop scanning at.
Returns
System.Int32
The index of the brace, or endIndex if none was found.