Logo Search packages:      
Sourcecode: yaskkserv version File versions  Download package

void SkkSimpleString::append ( char  c  )  [inline]

文字を追加します。.

Attention:
文字列は \0 で終端されます。

Definition at line 656 of file skk_simple_string.hpp.

        {
#ifdef YASKKSERV_DEBUG_PARANOIA
                const int terminator_size = 1;
                int size = buffer_ + buffer_size_ - MARGIN_SIZE - current_ - terminator_size;

                DEBUG_ASSERT((size >= 1) &&
                             (size < buffer_size_ - MARGIN_SIZE * 2));
                const int append_terminator_size = 1;
                const int tmp_size = 1;
                int tmp = buffer_ + buffer_size_ - MARGIN_SIZE - (current_ + 1 + append_terminator_size - 1) - terminator_size;
                DEBUG_ASSERT_RANGE(tmp,
                                   1,
                                   buffer_size_ - MARGIN_SIZE * 2 - 1);
                DEBUG_ASSERT_RANGE(tmp_size,
                                   1,
                                   buffer_size_ - MARGIN_SIZE * 2 - 1);
#endif  // YASKKSERV_DEBUG_PARANOIA

                *current_++ = c;
                *current_ = '\0';
                update_string();
        }


Generated by  Doxygen 1.6.0   Back to index