Home / Function/ trimOws() — netty Function Reference

trimOws() — netty Function Reference

Architecture documentation for the trimOws() function in StringUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6762e530_e6ac_0daa_bcdf_28223d72be19["trimOws()"]
  8a8ff062_3462_cc50_2d54_f42c40f72bfa["StringUtilTest"]
  6762e530_e6ac_0daa_bcdf_28223d72be19 -->|defined in| 8a8ff062_3462_cc50_2d54_f42c40f72bfa
  style 6762e530_e6ac_0daa_bcdf_28223d72be19 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/StringUtilTest.java lines 576–591

    @Test
    public void trimOws() {
        assertSame("", StringUtil.trimOws(""));
        assertEquals("", StringUtil.trimOws(" \t "));
        assertSame("a", StringUtil.trimOws("a"));
        assertEquals("a", StringUtil.trimOws(" a"));
        assertEquals("a", StringUtil.trimOws("a "));
        assertEquals("a", StringUtil.trimOws(" a "));
        assertSame("abc", StringUtil.trimOws("abc"));
        assertEquals("abc", StringUtil.trimOws("\tabc"));
        assertEquals("abc", StringUtil.trimOws("abc\t"));
        assertEquals("abc", StringUtil.trimOws("\tabc\t"));
        assertSame("a\t b", StringUtil.trimOws("a\t b"));
        assertEquals("", StringUtil.trimOws("\t ").toString());
        assertEquals("a b", StringUtil.trimOws("\ta b \t").toString());
    }

Domain

Subdomains

Frequently Asked Questions

What does trimOws() do?
trimOws() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/StringUtilTest.java.
Where is trimOws() defined?
trimOws() is defined in common/src/test/java/io/netty/util/internal/StringUtilTest.java at line 576.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free