gitlab.com/evatix-go/core@v1.3.55/corecomparator/BaseIsCaseSensitive.go (about)

     1  package corecomparator
     2  
     3  type BaseIsCaseSensitive struct {
     4  	IsCaseSensitive bool `json:"IsCaseSensitive,omitempty"` // strict case compare
     5  }
     6  
     7  func (it *BaseIsCaseSensitive) IsIgnoreCase() bool {
     8  	return !it.IsCaseSensitive
     9  }
    10  
    11  func (it *BaseIsCaseSensitive) BaseIsIgnoreCase() BaseIsIgnoreCase {
    12  	return BaseIsIgnoreCase{
    13  		IsIgnoreCase: it.IsIgnoreCase(),
    14  	}
    15  }
    16  
    17  func (it BaseIsCaseSensitive) Clone() BaseIsCaseSensitive {
    18  	return BaseIsCaseSensitive{
    19  		IsCaseSensitive: it.IsCaseSensitive,
    20  	}
    21  }
    22  
    23  func (it *BaseIsCaseSensitive) ClonePtr() *BaseIsCaseSensitive {
    24  	if it == nil {
    25  		return nil
    26  	}
    27  
    28  	return &BaseIsCaseSensitive{
    29  		IsCaseSensitive: it.IsCaseSensitive,
    30  	}
    31  }