changeCase(S, caseType)

버전 1.0.0.0 (8.04 KB) 작성자: Captain Awesome
convert case between upper, lower, title, sentence, camel, or snake
다운로드 수: 101
업데이트 날짜: 2017/2/3

라이선스 보기

This tool does all the case changes, with a little extra. It does what I consider a proper title case in that it does not capitalize the little words. e.g. 'This Is Title Case In A Bad Form', but rather 'This is Title Case in a Good Form'
Same thing with the other case changes. You can specify proper forms like 'Florida' or 'Google' that always have the first letter capitalized. You can also specify acronyms that will keep upper case like 'GPS' or 'ASCII'.
This makes it easy to convert to/from camel case for variable and function names.
e.g. 'readGPSFiles' <--> 'Read GPS Files'
Also does snake case
e.g. 'read_GPS_files' <--> 'Read GPS Files'
It will retain symbols and whitespace for most case changes but not for camel or snake which will purge all symbols and whitespace.

Enjoy!

인용 양식

Captain Awesome (2024). changeCase(S, caseType) (https://www.mathworks.com/matlabcentral/fileexchange/61411-changecase-s-casetype), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2016a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 String Parsing에 대해 자세히 알아보기
도움

받음: Case Converter

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0