ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Delete
    C++ Builder/함수 2018. 12. 6. 22:09

    #Delete

    //원하는 위치의 문자열을 원하는 길이만큼 제거

    System.UnicodeString.Delete

    C++

    UnicodeString& Delete(int index, int count) _ALWAYS_INLINE {

    Properties

    Type

    Visibility

    Source

    Unit

    Parent

    function

    public

    ustring.h

    System

    UnicodeString

    Description

    Removes a specified number of characters from the string.

    Delete modifies the UnicodeString object to remove count characters from the string beginning with the character at index, where 1 is the index of the first character. It returns the resulting modified string (*this).

    If index is larger than the character length of the UnicodeString object or less than 1, no characters are deleted.

    If count specifies more characters than remain starting at the index, Delete removes the rest of the string. If count is less than 0, no characters are deleted.

    ex) {

    UnicodeString TestString = "This is String";

    ShowMessage(TestString.Delete(1,8));

    }

    728x90

    'C++ Builder > 함수' 카테고리의 다른 글

    StringOfChar  (0) 2018.12.06
    Pos  (0) 2018.12.06
    Insert  (0) 2018.12.06
    Length  (0) 2018.12.06
    sprintf  (0) 2018.12.06

    댓글

Designed by Tistory.