Methods
아래의 메소드 리스트명은 문자열 library 를 표현하는 겁니다.
첨부되어 있으니 다운 받으시기 바랍니다.
I did not give the signatures, but many of these have several overloads. Also, I did not keep the PHP method names as those names do not conform to .Net best practices. You can view all the methods, their overloads, and documentation by clicking on the "View the Code" button below or by just downloading the .cs file.
- Base64StringEncode: Base64 encodes a string.
- Base64StringDecode: Decodes a Base64 string.
- CaseInsenstiveReplace: A case insenstive replace function.
- ReplaceFirst: Replaces the first occurence of a string with the replacement value. The Replace is case senstive. [The inclusion of this method and ReplaceLast was suggested by a reader's comment.]
- ReplaceLast: Replaces the last occurence of a string with the replacement value. The replace is case senstive.
- FilterWords: Removes all the words passed in the filter words parameters. The replace is NOT case sensitive.
- HasWords: Checks the passed string to see if it contains any of the passed words. Not case-sensitive.
- HtmlSpecialEntitiesEncode: A wrapper around HttpUtility.HtmlEncode.
- HtmlSpecialEntitiesDecode: A wrapper around HttpUtility.HtmlDecode.
- MD5String: MD5 encodes the passed string.
- MD5VerifyString: Verifies a string against the passed MD5 hash.
- PadLeftHtmlSpaces: Left pads the passed string using the HTML non-breaking space ( ) for the total number of spaces.
- CaseInsenstiveReplace: Performs a case insenstive replace.
- PadLeft: Left pads the passed string using the passed pad string for the total number of spaces. (It will not cut-off the pad even if it causes the string to exceed the total width.)
- PadRightHtmlSpaces: Right pads the passed string using the HTML non-breaking space ( ) for the total number of spaces.
- PadRight: Right pads the passed string using the passed pad string for the total number of spaces. (It will not cut-off the pad even if it causes the string to exceed the total width.)
- RemoveNewLines: Removes the new line (\n) and carriage return (\r) symbols.
- Reverse: Reverses the passed string.
- SentenceCase: Converts a string to sentence case.
- SpaceToNbsp: Converts all spaces to HTML non-breaking spaces.
- StripTags: Removes all HTML tags from the passed string.
- TitleCase: Converts a string to title case.
- TrimIntraWords: Removes multiple spaces between words.
- NewLineToBreak: Converts each new line (\n) and carriage return (\r) symbols to the HTML <br /> tag.
- WordWrap: Wraps the passed string at the passed total number of characters (if cuttOff is true)or at the next whitespace (if cutOff is false). Uses the environment new linesymbol for the break text.
첨부파일첨부된 파일이 1개 있습니다.
다음검색
StringHelper.zip