proxygen
folly::gen::detail::StringResplitter Class Reference

#include <String-inl.h>

Inheritance diagram for folly::gen::detail::StringResplitter:
folly::gen::Operator< StringResplitter > folly::gen::FBounded< Self >

Classes

class  Generator
 

Public Member Functions

 StringResplitter (char delimiter, bool keepDelimiter=false)
 
template<class Source , class Value , class Gen = Generator<Source>>
Gen compose (GenImpl< Value, Source > &&source) const
 
template<class Source , class Value , class Gen = Generator<Source>>
Gen compose (const GenImpl< Value, Source > &source) const
 
- Public Member Functions inherited from folly::gen::Operator< StringResplitter >
ResultGen compose (const GenImpl< Value, Source > &source) const
 
- Public Member Functions inherited from folly::gen::FBounded< Self >
const Self & self () const
 
Self & self ()
 

Private Attributes

char delimiter_
 
bool keepDelimiter_
 

Additional Inherited Members

- Protected Member Functions inherited from folly::gen::Operator< StringResplitter >
 Operator ()=default
 
 Operator (Operator &&) noexcept=default
 
 Operator (const Operator &)=default
 
Operatoroperator= (Operator &&) noexcept=default
 
Operatoroperator= (const Operator &)=default
 

Detailed Description

Definition at line 211 of file String-inl.h.

Constructor & Destructor Documentation

folly::gen::detail::StringResplitter::StringResplitter ( char  delimiter,
bool  keepDelimiter = false 
)
inlineexplicit

Definition at line 216 of file String-inl.h.

Member Function Documentation

template<class Source , class Value , class Gen = Generator<Source>>
Gen folly::gen::detail::StringResplitter::compose ( GenImpl< Value, Source > &&  source) const
inline

Definition at line 258 of file String-inl.h.

References folly::gen::move.

258  {
259  return Gen(std::move(source.self()), delimiter_, keepDelimiter_);
260  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
template<class Source , class Value , class Gen = Generator<Source>>
Gen folly::gen::detail::StringResplitter::compose ( const GenImpl< Value, Source > &  source) const
inline

Definition at line 263 of file String-inl.h.

References folly::gen::FBounded< Self >::self().

263  {
264  return Gen(source.self(), delimiter_, keepDelimiter_);
265  }

Member Data Documentation

char folly::gen::detail::StringResplitter::delimiter_
private

Definition at line 212 of file String-inl.h.

bool folly::gen::detail::StringResplitter::keepDelimiter_
private

Definition at line 213 of file String-inl.h.


The documentation for this class was generated from the following file: