約 1,740,000 件の結果
リンクを新しいタブで開く
  1. c++ - How to use string.substr () function? - Stack Overflow

    2010年3月19日 · string substr ( size_t pos = 0, size_t n = npos ) const; Generate substring Returns a string object with its contents initialized to a substring of the current object. This substring is …

  2. What is the difference between substr and substring?

    2010年9月19日 · 17 The big difference is, substr() is a deprecated method that can still be used, but should be used with caution because they are expected to be removed entirely sometime in …

  3. substring - How substr () of c++ really works? - Stack Overflow

    2020年10月20日 · string substr (size_t pos = 0, size_t len = npos) const; Generate substring Returns a newly constructed string object with its value initialized to a copy of a substring of …

  4. substr() from the 1. to the last character C++ - Stack Overflow

    2016年1月9日 · I would like to use substr () function in order to get the chain of characters from the 1. to the last, without 0. Should I do sth like this: string str = xyz.substr (1, xyz.length ()); or …

  5. Why is String.prototype.substr () deprecated? - Stack Overflow

    2018年10月4日 · Moreover, substr is largely redundant with substring and slice, but the second argument has a different meaning. In pragmatic terms, I'd be surprised if you found a full …

  6. c++ - How to efficiently get a `string_view` for a substring of `std ...

    2017年9月4日 · You cannot create a string_view from substr unless you want to keep that substr in memory for the lifetime of your string_view. The accepted answer below is completely …

  7. How to use substring function in c? - Stack Overflow

    2012年5月10日 · If you know the character also in the string from where you want to get the substring then you can use strstr function. It locates the substring. But if u do not know the …

  8. SUBSTR and INSTR SQL Oracle - Stack Overflow

    SELECT PHONE, SUBSTR(PHONE, 1, INSTR(PHONE, '-') -1) FROM DIRECTORY; So I know SUBSTR cuts values off, and INSTR shows where the occurrence is but the example I've put above has …

  9. SQL Essentials: SUBSTR Function Explained — NetSuite Community

    2024年5月17日 · The SUBSTR function emerges as a fundamental tool in SQL for extracting substrings from strings based on specified criteria. Understanding the Syntax SUBSTR (string, …

  10. SELECT Statement with substr in WHERE Clause - Stack Overflow

    2012年3月9日 · SELECT Statement with substr in WHERE Clause Asked 13 years, 10 months ago Modified 12 years, 7 months ago Viewed 106k times