Lines Matching defs:Separator

693     /// If \p Separator is in the string, then the result is a pair (LHS, RHS)
694 /// such that (*this == LHS + Separator + RHS) is true and RHS is
695 /// maximal. If \p Separator is not in the string, then the result is a
698 /// \param Separator The character to split on.
700 [[nodiscard]] std::pair<StringRef, StringRef> split(char Separator) const {
701 return split(StringRef(&Separator, 1));
707 /// If \p Separator is in the string, then the result is a pair (LHS, RHS)
708 /// such that (*this == LHS + Separator + RHS) is true and RHS is
709 /// maximal. If \p Separator is not in the string, then the result is a
712 /// \param Separator - The string to split on.
715 split(StringRef Separator) const {
716 size_t Idx = find(Separator);
719 return std::make_pair(slice(0, Idx), substr(Idx + Separator.size()));
725 /// If \p Separator is in the string, then the result is a pair (LHS, RHS)
726 /// such that (*this == LHS + Separator + RHS) is true and RHS is
727 /// minimal. If \p Separator is not in the string, then the result is a
730 /// \param Separator - The string to split on.
733 rsplit(StringRef Separator) const {
734 size_t Idx = rfind(Separator);
737 return std::make_pair(slice(0, Idx), substr(Idx + Separator.size()));
748 /// Separator.join(A) == *this if MaxSplit == -1 and KeepEmpty == true
751 /// \param Separator - The string to split on.
755 StringRef Separator, int MaxSplit = -1,
766 /// Separator.join(A) == *this if MaxSplit == -1 and KeepEmpty == true
769 /// \param Separator - The string to split on.
772 void split(SmallVectorImpl<StringRef> &A, char Separator, int MaxSplit = -1,
778 /// If \p Separator is in the string, then the result is a pair (LHS, RHS)
779 /// such that (*this == LHS + Separator + RHS) is true and RHS is
780 /// minimal. If \p Separator is not in the string, then the result is a
783 /// \param Separator - The character to split on.
785 [[nodiscard]] std::pair<StringRef, StringRef> rsplit(char Separator) const {
786 return rsplit(StringRef(&Separator, 1));