Commit 98b613a1 authored by Hiroshi Sumita's avatar Hiroshi Sumita
Browse files

Add TODO comment and remove some comment/space.

BUG=None
TEST=Build manually

Review URL: http://codereview.appspot.com/5440070
parent 97264290
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -403,7 +403,6 @@ BopomofoContext::updatePreeditText (void)
                        SimpTradConverter::simpToTrad (candidate, m_buffer);
                    edit_end_word = m_buffer.utf8Length ();
                    edit_end_byte = m_buffer.size ();
              
                    /* append rest text */
                    for (const char *p=m_text.c_str() + m_pinyin_len; *p ;++p) {
                        m_buffer.appendUnichar(bopomofo_char[keyvalToBopomofo(*p)]);
+4 −1
Original line number Diff line number Diff line
@@ -80,6 +80,8 @@ public:

    virtual bool moveCursorRight (void) = 0;
    virtual bool moveCursorLeft (void) = 0;
    // Currently this library treats cahracters after cursor as a one-word phrase.
    // TODO(hsumita): Parse pinyin after cursor.
    virtual bool moveCursorRightByWord (void) = 0;
    virtual bool moveCursorLeftByWord (void) = 0;
    virtual bool moveCursorToBegin (void) = 0;
@@ -95,6 +97,8 @@ public:
    virtual bool removeCharBefore (void) = 0;
    virtual bool removeCharAfter (void) = 0;
    virtual bool removeWordBefore (void) = 0;
    // Currently this library treats cahracters after cursor as a one-word phrase.
    // TODO(hsumita): Parse pinyin after cursor.
    virtual bool removeWordAfter (void) = 0;

    virtual void bopomofoSelectMode () = 0;
@@ -113,7 +117,6 @@ public:
    virtual const std::string & conversionText (void) const = 0;
    virtual const std::string & restText (void) const = 0;
    virtual const std::string & auxiliaryText (void) const = 0;
    // TODO(hsumita): Change return value to "class Candidates".
    virtual const Candidates & candidates () const = 0;
    virtual unsigned int cursor () const = 0;
    virtual unsigned int focusedCandidate () const = 0;
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.