Giter VIP home page Giter VIP logo

Comments (6)

quintesse avatar quintesse commented on August 16, 2024

Looking at the code it does indeed not trim the spaces from the beginning nor the end. @gavinking I assume the docs are correct here and it's the implementation that's wrong?

from ceylon-sdk.

gavinking avatar gavinking commented on August 16, 2024

Dunno, what do y'all think it should do?

Sent from my iPhone

On 02/01/2013, at 7:11 PM, Tako Schotanus [email protected] wrote:

Looking at the code it does indeed not trim the spaces from the beginning nor the end. @gavinking I assume the docs are correct here and it's the implementation that's wrong?


Reply to this email directly or view it on GitHub.

from ceylon-sdk.

ikasiuk avatar ikasiuk commented on August 16, 2024

I think it should trim, like the doc text says.

from ceylon-sdk.

ragaller avatar ragaller commented on August 16, 2024

I think that trimming and collapsing should be done as described by the docs.
But I wonder if the attribute shouldn't be named normalizeSpace (or normalizeWhitespace) instead and normalize should be used for Unicode Normalization (http://www.unicode.org/faq/normalization.html). This would be more aligned with Java (http://docs.oracle.com/javase/6/docs/api/java/text/Normalizer.html) and even NET (http://msdn.microsoft.com/en-us/library/system.string.normalize.aspx). I don't know if such an API breakage would be possible at the current stage, but it might be worth thinking about.

from ceylon-sdk.

FroMage avatar FroMage commented on August 16, 2024

@tombentley could you move this issue to ceylon.language if it isn't already fixed please?

from ceylon-sdk.

tombentley avatar tombentley commented on August 16, 2024

Opened issue on ceylon.language

from ceylon-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.