Home / Function/ parse1() — netty Function Reference

parse1() — netty Function Reference

Architecture documentation for the parse1() function in DateFormatter.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  3999a815_d40c_c6fb_6f54_8cb03a5d1f09["parse1()"]
  868307e6_8dd7_9eb3_bb13_ca685c4d59cf["DateFormatter"]
  3999a815_d40c_c6fb_6f54_8cb03a5d1f09 -->|defined in| 868307e6_8dd7_9eb3_bb13_ca685c4d59cf
  c0c8c303_9c6b_ff59_6738_58d3bb356d4c["Date()"]
  c0c8c303_9c6b_ff59_6738_58d3bb356d4c -->|calls| 3999a815_d40c_c6fb_6f54_8cb03a5d1f09
  b615a2fa_ebeb_80fc_aed3_559016f59224["isDelim()"]
  3999a815_d40c_c6fb_6f54_8cb03a5d1f09 -->|calls| b615a2fa_ebeb_80fc_aed3_559016f59224
  ccbf0bfc_8853_892e_8582_30ad6041b06a["parseToken()"]
  3999a815_d40c_c6fb_6f54_8cb03a5d1f09 -->|calls| ccbf0bfc_8853_892e_8582_30ad6041b06a
  style 3999a815_d40c_c6fb_6f54_8cb03a5d1f09 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/main/java/io/netty/handler/codec/DateFormatter.java lines 370–393

    private boolean parse1(CharSequence txt, int start, int end) {
        // return true if all parts are found
        int tokenStart = -1;

        for (int i = start; i < end; i++) {
            char c = txt.charAt(i);

            if (isDelim(c)) {
                if (tokenStart != -1) {
                    // terminate token
                    if (parseToken(txt, tokenStart, i)) {
                        return true;
                    }
                    tokenStart = -1;
                }
            } else if (tokenStart == -1) {
                // start new token
                tokenStart = i;
            }
        }

        // terminate trailing token
        return tokenStart != -1 && parseToken(txt, tokenStart, txt.length());
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does parse1() do?
parse1() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/DateFormatter.java.
Where is parse1() defined?
parse1() is defined in codec-base/src/main/java/io/netty/handler/codec/DateFormatter.java at line 370.
What does parse1() call?
parse1() calls 2 function(s): isDelim, parseToken.
What calls parse1()?
parse1() is called by 1 function(s): Date.

Analyze Your Own Codebase

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

Try Supermodel Free