[{"data":1,"prerenderedAt":496},["ShallowReactive",2],{"content-en-api":3},{"doc":4,"debug":493},{"id":5,"title":6,"body":7,"description":474,"extension":486,"meta":487,"navigation":488,"path":489,"seo":490,"stem":491,"__hash__":492},"content\u002Fen\u002Fapi.md","API Reference",{"type":8,"value":9,"toc":473},"minimark",[10,14,19,92,96,190,194,237,241,302,306,385,388,449,453],[11,12,6],"h1",{"id":13},"api-reference",[15,16,18],"h2",{"id":17},"twid-national-id-ui-numbers","TwId — National ID \u002F UI numbers",[20,21,22,38],"table",{},[23,24,25],"thead",{},[26,27,28,32,35],"tr",{},[29,30,31],"th",{},"Member",[29,33,34],{},"Returns",[29,36,37],{},"Description",[39,40,41,62,77],"tbody",{},[26,42,43,50,55],{},[44,45,46],"td",{},[47,48,49],"code",{},"IsValid(string?)",[44,51,52],{},[47,53,54],{},"bool",[44,56,57,58,61],{},"Validates all three ID kinds (auto-detected); ",[47,59,60],{},"false"," for null\u002Fempty, never throws",[26,63,64,69,74],{},[44,65,66],{},[47,67,68],{},"Validate(string?)",[44,70,71],{},[47,72,73],{},"TwIdResult",[44,75,76],{},"Detailed validation result",[26,78,79,84,89],{},[44,80,81],{},[47,82,83],{},"Generate(TwIdKind, Gender?, int? seed)",[44,85,86],{},[47,87,88],{},"string",[44,90,91],{},"Generates a checksum-valid sample ID",[93,94,73],"h3",{"id":95},"twidresult",[20,97,98,110],{},[23,99,100],{},[26,101,102,105,108],{},[29,103,104],{},"Property",[29,106,107],{},"Type",[29,109,37],{},[39,111,112,126,145,160,175],{},[26,113,114,119,123],{},[44,115,116],{},[47,117,118],{},"IsValid",[44,120,121],{},[47,122,54],{},[44,124,125],{},"Whether the number is valid",[26,127,128,133,138],{},[44,129,130],{},[47,131,132],{},"Failure",[44,134,135],{},[47,136,137],{},"ValidationFailure",[44,139,140,141,144],{},"Failure reason; ",[47,142,143],{},"None"," when valid",[26,146,147,152,157],{},[44,148,149],{},[47,150,151],{},"Kind",[44,153,154],{},[47,155,156],{},"TwIdKind?",[44,158,159],{},"Number kind; null when the format is unrecognizable",[26,161,162,167,172],{},[44,163,164],{},[47,165,166],{},"Gender",[44,168,169],{},[47,170,171],{},"Gender?",[44,173,174],{},"Gender; null when unrecognizable",[26,176,177,182,187],{},[44,178,179],{},[47,180,181],{},"RegionName",[44,183,184],{},[47,185,186],{},"string?",[44,188,189],{},"Household (first registration) region; obsolete codes marked \"（已停用）\"",[93,191,193],{"id":192},"twidkind","TwIdKind",[20,195,196,205],{},[23,197,198],{},[26,199,200,203],{},[29,201,202],{},"Value",[29,204,37],{},[39,206,207,217,227],{},[26,208,209,214],{},[44,210,211],{},[47,212,213],{},"NationalId",[44,215,216],{},"National ID for citizens (2nd char 1\u002F2)",[26,218,219,224],{},[44,220,221],{},[47,222,223],{},"NewResidentId",[44,225,226],{},"New-style UI number (2nd char 8\u002F9, 2021+)",[26,228,229,234],{},[44,230,231],{},[47,232,233],{},"OldResidentId",[44,235,236],{},"Old-style ARC number (first 2 chars are letters, valid until 2031)",[15,238,240],{"id":239},"twban-business-administration-number","TwBan — Business administration number",[20,242,243,253],{},[23,244,245],{},[26,246,247,249,251],{},[29,248,31],{},[29,250,34],{},[29,252,37],{},[39,254,255,268,288],{},[26,256,257,261,265],{},[44,258,259],{},[47,260,49],{},[44,262,263],{},[47,264,54],{},[44,266,267],{},"8-digit BAN validation (2021 rule + 7th-digit-7 special case)",[26,269,270,274,279],{},[44,271,272],{},[47,273,68],{},[44,275,276],{},[47,277,278],{},"BanResult",[44,280,281,282,284,285,287],{},"Detailed result (",[47,283,118],{}," + ",[47,286,132],{},")",[26,289,290,295,299],{},[44,291,292],{},[47,293,294],{},"Generate(int? seed)",[44,296,297],{},[47,298,88],{},[44,300,301],{},"Generates a checksum-valid sample BAN",[15,303,305],{"id":304},"twphone-mobile-phone-number","TwPhone — Mobile phone number",[20,307,308,318],{},[23,309,310],{},[26,311,312,314,316],{},[29,313,31],{},[29,315,34],{},[29,317,37],{},[39,319,320,336,350,372],{},[26,321,322,326,330],{},[44,323,324],{},[47,325,49],{},[44,327,328],{},[47,329,54],{},[44,331,332,333],{},"Strict validation: 10 digits starting with ",[47,334,335],{},"09",[26,337,338,342,347],{},[44,339,340],{},[47,341,68],{},[44,343,344],{},[47,345,346],{},"PhoneResult",[44,348,349],{},"Detailed result",[26,351,352,357,361],{},[44,353,354],{},[47,355,356],{},"TryNormalize(string?, out string)",[44,358,359],{},[47,360,54],{},[44,362,363,364,367,368,371],{},"Normalizes ",[47,365,366],{},"+886","\u002F",[47,369,370],{},"886",", spaces, dashes, parentheses, dots and full-width digits, then validates",[26,373,374,378,382],{},[44,375,376],{},[47,377,294],{},[44,379,380],{},[47,381,88],{},[44,383,384],{},"Generates a format-valid sample number",[15,386,137],{"id":387},"validationfailure",[20,389,390,398],{},[23,391,392],{},[26,393,394,396],{},[29,395,202],{},[29,397,37],{},[39,399,400,409,419,429,439],{},[26,401,402,406],{},[44,403,404],{},[47,405,143],{},[44,407,408],{},"Validation passed",[26,410,411,416],{},[44,412,413],{},[47,414,415],{},"NullOrEmpty",[44,417,418],{},"Null, empty or whitespace-only input",[26,420,421,426],{},[44,422,423],{},[47,424,425],{},"InvalidLength",[44,427,428],{},"Wrong length",[26,430,431,436],{},[44,432,433],{},[47,434,435],{},"InvalidFormat",[44,437,438],{},"Character kind or position violates the rule",[26,440,441,446],{},[44,442,443],{},[47,444,445],{},"InvalidChecksum",[44,447,448],{},"Checksum mismatch",[15,450,452],{"id":451},"exception-behavior","Exception behavior",[454,455,456,457,461,462,465,466,469,470,472],"p",{},"Validation paths ",[458,459,460],"strong",{},"never throw",". The only throwing case: ",[47,463,464],{},"TwId.Generate"," throws ",[47,467,468],{},"ArgumentOutOfRangeException"," for an undefined ",[47,471,193],{},".",{"title":474,"searchDepth":475,"depth":476,"links":477},"",2,3,[478,482,483,484,485],{"id":17,"depth":475,"text":18,"children":479},[480,481],{"id":95,"depth":476,"text":73},{"id":192,"depth":476,"text":193},{"id":239,"depth":475,"text":240},{"id":304,"depth":475,"text":305},{"id":387,"depth":475,"text":137},{"id":451,"depth":475,"text":452},"md",{},true,"\u002Fen\u002Fapi",{"title":6,"description":474},"en\u002Fapi","WiTwSnmbY2v5ffWnggDmHQ6TKNT9zFMJ4AfhYeudq50",{"matched":494,"target":489,"all":495},"path()",null,1783231662482]