Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 37 for capitalize (0.14 seconds)

  1. docs/en/docs/tutorial/header-params.md

    Also, HTTP headers are case-insensitive, so, you can declare them with standard Python style (also known as "snake_case").
    
    So, you can use `user_agent` as you normally would in Python code, instead of needing to capitalize the first letters as `User_Agent` or something similar.
    
    If for some reason you need to disable automatic conversion of underscores to hyphens, set the parameter `convert_underscores` of `Header` to `False`:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/lang/StringUtil.java

            return new String(chars);
        }
    
        /**
         * Capitalizes a string according to JavaBeans conventions.
         * Note: If the first two characters are uppercase, the string will not be capitalized.
         * <p>
         * Usage example:
         * </p>
         *
         * <pre>
         * StringUtil.capitalize("userId")  = "UserId"
         * StringUtil.capitalize("ABC")     = "ABC"
         * </pre>
         *
         * @param name
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 21.5K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/python-types.md

    ### 編輯它 { #edit-it }
    
    這是一個非常簡單的程式。
    
    但現在想像你正從零開始寫它。
    
    在某個時間點你會開始定義函式,參數都準備好了...
    
    接著你需要呼叫「那個把第一個字母轉大寫的方法」。
    
    是 `upper`?還是 `uppercase`?`first_uppercase`?`capitalize`?
    
    然後你試著用老牌程式設計師的好朋友——編輯器自動完成。
    
    你輸入函式的第一個參數 `first_name`,接著打一個點(`.`),然後按下 `Ctrl+Space` 觸發自動完成。
    
    但很遺憾,你什麼有用的也沒得到:
    
    <img src="/img/python-types/image01.png">
    
    ### 加上型別 { #add-types }
    
    我們來修改前一版中的一行。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  4. docs/en/docs/python-types.md

    But then you have to call "that method that converts the first letter to upper case".
    
    Was it `upper`? Was it `uppercase`? `first_uppercase`? `capitalize`?
    
    Then, you try with the old programmer's friend, editor autocompletion.
    
    You type the first parameter of the function, `first_name`, then a dot (`.`) and then hit `Ctrl+Space` to trigger the completion.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  5. docs/zh/docs/python-types.md

    ### 修改它 { #edit-it }
    
    这是一个非常简单的程序。
    
    但现在想象你要从零开始写它。
    
    在某个时刻你开始定义函数,并且准备好了参数……
    
    接下来你需要调用“那个把首字母变大写的方法”。
    
    是 `upper`?是 `uppercase`?`first_uppercase`?还是 `capitalize`?
    
    然后,你试试程序员的老朋友——编辑器的自动补全。
    
    你输入函数的第一个参数 `first_name`,再输入一个点(`.`),然后按下 `Ctrl+Space` 触发补全。
    
    但很遗憾,没有什么有用的提示:
    
    <img src="/img/python-types/image01.png">
    
    ### 添加类型 { #add-types }
    
    我们来改前一个版本的一行代码。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/core/lang/StringUtilTest.java

         */
        @Test
        public void testCapitalize() throws Exception {
            assertEquals("Abc", StringUtil.capitalize("abc"));
            assertEquals("Abc", StringUtil.capitalize("Abc"));
            assertEquals("ABC", StringUtil.capitalize("ABC"));
            assertEquals("UserId", StringUtil.capitalize("userId"));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/StringExtensions.kt

     * limitations under the License.
     */
    
    package gradlebuild.basics
    
    import java.util.Locale
    
    fun String.capitalize(): String =
        replaceFirstChar { it.uppercase(Locale.US) }
    
    fun String.decapitalize(): String =
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Sun Dec 15 07:49:41 GMT 2024
    - 839 bytes
    - Click Count (0)
  8. build-logic/build-update-utils/src/main/kotlin/gradlebuild.wrapper.gradle.kts

    import gradlebuild.basics.capitalize
    import com.google.gson.Gson
    import java.net.URI
    
    wrapperUpdateTask("nightly", "nightly")
    wrapperUpdateTask("rc", "release-candidate")
    wrapperUpdateTask("current", "current")
    
    tasks.withType<Wrapper>().configureEach {
        val jvmOpts = "-Dfile.encoding=UTF-8"
        inputs.property("jvmOpts", jvmOpts)
        doLast {
            val optsEnvVar = "DEFAULT_JVM_OPTS"
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Sep 17 08:58:33 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  9. build-logic/buildquality/src/main/kotlin/gradlebuild.incubation-report-aggregation.gradle.kts

    import gradlebuild.basics.buildCommitId
    import gradlebuild.basics.capitalize
    import gradlebuild.incubation.tasks.IncubatingApiAggregateReportTask
    
    plugins {
        id("base")
    }
    
    val reports by configurations.creating {
        isCanBeResolved = false
        isCanBeConsumed = false
        description = "Dependencies to aggregate reports from"
    }
    
    val allIncubationReports = tasks.register<IncubatingApiAggregateReportTask>("allIncubationReports") {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Jul 02 12:28:02 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  10. docs/ja/docs/python-types.md

    これはとても簡単なプログラムです。
    
    しかし、今、あなたがそれを一から書いていたと想像してみてください。
    
    パラメータの準備ができていたら、そのとき、関数の定義を始めていたことでしょう...
    
    しかし、そうすると「最初の文字を大文字に変換するあのメソッド」を呼び出す必要があります。
    
    それは `upper` でしたか?`uppercase` でしたか?`first_uppercase`?`capitalize`?
    
    そして、古くからプログラマーの友人であるエディタで自動補完を試してみます。
    
    関数の最初のパラメータ `first_name` を入力し、ドット(`.`)を入力してから、`Ctrl+Space` を押すと補完が実行されます。
    
    しかし、悲しいことに、これはなんの役にも立ちません:
    
    <img src="/img/python-types/image01.png">
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 14.3K bytes
    - Click Count (0)
Back to Top