MCPcopy Create free account
hub / github.com/gobeam/stringy / StringManipulation

Interface StringManipulation

stringy.go:22–51  ·  view source on GitHub ↗

StringManipulation is an interface that holds all abstract methods to manipulate strings

Source from the content-addressed store, hash-verified

20
21// StringManipulation is an interface that holds all abstract methods to manipulate strings
22type StringManipulation interface {
23 Acronym() StringManipulation
24 Between(start, end string) StringManipulation
25 Boolean() bool
26 PascalCase(rule ...string) StringManipulation
27 CamelCase(rule ...string) StringManipulation
28 ContainsAll(check ...string) bool
29 Delimited(delimiter string, rule ...string) StringManipulation
30 First(length int) string
31 Get() string
32 KebabCase(rule ...string) StringManipulation
33 Last(length int) string
34 LcFirst() string
35 Lines() []string
36 Pad(length int, with, padType string) string
37 RemoveSpecialCharacter() string
38 ReplaceFirst(search, replace string) string
39 ReplaceLast(search, replace string) string
40 Reverse() string
41 Shuffle() string
42 Surround(with string) string
43 SnakeCase(rule ...string) StringManipulation
44 Tease(length int, indicator string) string
45 Title() string
46 ToLower() string
47 ToUpper() string
48 UcFirst() string
49 Prefix(with string) string
50 Suffix(with string) string
51}
52
53// New func returns pointer to input struct
54func New(val string) StringManipulation {

Callers 84

TestInput_AcronymFunction · 0.65
mainFunction · 0.65
TestInput_BetweenFunction · 0.65
TestInput_EmptyBetweenFunction · 0.65
mainFunction · 0.65
TestInput_BooleanTrueFunction · 0.65
TestInput_BooleanFalseFunction · 0.65
TestInput_BooleanErrorFunction · 0.65
mainFunction · 0.65

Implementers 1

inputstringy.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…