gitlab.com/evatix-go/core@v1.3.55/coreutils/stringutil/IsStartsAndEndsWith.go (about)

     1  package stringutil
     2  
     3  func IsStartsAndEndsWith(
     4  	content, startsWith, endsWith string,
     5  	isIgnoreCase bool,
     6  ) bool {
     7  	return IsStartsWith(
     8  		content,
     9  		startsWith,
    10  		isIgnoreCase) &&
    11  		IsEndsWith(
    12  			content,
    13  			endsWith,
    14  			isIgnoreCase)
    15  
    16  }
    17  
    18  // IsStartsAndEnds case sensitive term
    19  func IsStartsAndEnds(
    20  	content, startsWith, endsWith string,
    21  ) bool {
    22  	return IsStartsWith(
    23  		content,
    24  		startsWith,
    25  		false) &&
    26  		IsEndsWith(
    27  			content,
    28  			endsWith,
    29  			false)
    30  
    31  }