When thinking more about it I realize that a function ByteString => Boolean
will probably not work well in the general case where the delimiter is more
than one byte. Probably has be a fixed set of delimiters.

/Patrik

On Sat, Nov 11, 2017 at 3:27 PM, regis leray <regis.le...@gmail.com> wrote:

> Oki, i will create a pull request to provide a function, good idea !
>
> Le samedi 11 novembre 2017 03:35:28 UTC-5, Patrik Nordwall a écrit :
>>
>> You could do that by first replacing the various delimiters with one
>> common, in a map stage. That said, if this is typical framing requirement
>> we could perhaps add more power to the framing stage, e.g. a funtion
>> ByteString => Boolean. That would be a good community contribution.
>>
>> /Patrik
>>
>> lör 11 nov. 2017 kl. 04:31 skrev regis leray <regis...@gmail.com>:
>>
>>> Hi,
>>>
>>> Currently the implementation
>>>
>>> Framing.delimiter(ByteString("."), Int.MaxValue)
>>>
>>>
>>> only accept one delimiter. I would like to be able to use many delimiters
>>> . , ;
>>>
>>> to be able to parse such string
>>> Lorem Ipsum is simply,Dummy text of the printing;And typesetting
>>> industry.
>>>
>>> thanks
>>>
>>>
>>> --
>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/c
>>> urrent/additional/faq.html
>>> >>>>>>>>>> Search the archives: https://groups.google.com/grou
>>> p/akka-user
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to akka-user+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to