Home > Mobile >  Why nsstrings splicing length limit would have been cut?
Why nsstrings splicing length limit would have been cut?

Time:10-02

NSString *a=@"FBB51BDADCD94CA507417D2D3A8606E0A0A65071BE271C5FC8AA5F6B113A647E2B2989C7FF44435B6A9F3F700B731FBDEF7425730FA4E12EE6CE547953B4E0892919A127779F1F05D0022281C2A81FA766BAACFFEDC2EE92E11FC434CD4E5848654B3B2A9F97A46D80E98A7A268802402AA09AD0AB27636A22B94FB03ADFFA64FB6F9872B9B6C9030300F7427FF5448E31D249A12201CFE6FBD2F56DBCDF54893498A0AE31DBFD3516282518CC45C6182515BD56578169EDA8E93E46FC5FCDEAA1AEFADEDA130843A70BB63797E83E03F63C4357D63F7C19E2A6D5BC91B53EFA9288B9B3A4D13EAAA221CB4ED17E84710C80B3A0AC26323F1E5F346C84CAE59F79B981BA0D7AEE771447BDAF5C593EE1C479F98BA2FD842D063391A5EC94CE6144E31765EE06D8B9050DEAEDAD5AC6E981EA46FAA3385AC5518753DFCD758C88F9D4829874BA1051282DA597A98301B2D4204AC459B9CA4BCC3D88BB724F205B362BBC863BF2C44B03F496703506DBF4252088BD1E708153F07F9BC376F3AE16FDCD13E595116743439114EA82D0D8799B2DD4E468B6C291641C8B57381";
NSString *b=@"617EF8D78B63E5C0BED9BE43963A1837EFD0C29F3F870A0E4A3B26A6FC4D32CF35EA0A0579569044FB85B2208E2D37080B841E3ACFA8953D998C95E64F86BB3590E12AB887373CF535ACB939E66F1D98763E5BAD8C23CC3091733673D434E05F4E22E9645C1F48D27B846B6BFA8FF56A5A369CBBCD4B93898C508E006928E7E64A0B3C2BC1CD22A23913971299280E6805370F7CB87F68630EE99EFC003A62CDA2196E34ABBCCE7A00D99AD10EBE1F3EFFB73566DFB94D19E7E63CA9B9B65E47386BBB746C2FCCD5BD9B9F117735E6D8F92BF8033017A0D82DED131452B89A15CB1ABFA4BD59DE9DFEA9FD41ED61D5DA5291722EA9D3B13AED14704D47E218FB799841364D53ED9E239D5991A46F972B801AEF47BAC253F59567CE77C1A4BAEA7C0C18E793D2C7269F08A66A60354AF6ACE1463350AD6DE00CFF08C6C3481728763E0F2F7B2E7AC7E18EB513735D51927F534649116A9E9854C26ED92A186D3C30B21117280E7BC871DD8CEEFC372C057C98A6E2E3C977F785F17AD7D845ED35C562956BFD49F1322E712386F998D6C2CC8CE82927B69E3FEF5A6D8C88F3CA728B58A9DE61B97C5788B3CD77C740296409AC001DF6A58BACBA24DAC723C7FC202F290A85AAB69D4EDE97C103BF980E6406D09EA9255C2B47F6D86D66B33BBD4CB5ACCB9F70E1F12DADFF9E077F88B6B02409815D775F62747E82883E9D06100C8291EAED514F2F47154E257667B182009A47104C328F876930840C433F5";

NSString *c=@"244319E89E5800AADD48618F3C8EEA0550A38A7D7F5C90D95B069C99903ECB021755990C917A17F9D1EABCF87C6AE2818D505C684D138D47328E32FFC0320EF6F359063E3A9B434546BA1254E79EB779E7561AB13512898E9BAF754F84DA2B897ED11BC6CAA3AE20F1BA7AE78C4DCD3C1CE7787654C04395CE47FA5EA2E3ADE84159853985189D7D8FF3603FEBEC454AE5F25A580A44E0CE06376F083C5F88BED0871FEE461E7E516E8A22D20374ED29B06E16BD97A64CCCC272E410C0BCE3E2270C40E4ED992C1AA9DE9ACFDA33DC5A9458E1AEA53BC7096710DBD552681DBD37DE63EA5E014CD6238CBCEBEDFB6230DA25F3380892C4689E60FF215A9F66442BDD85C4DC10E169639BF6C56F7F6765A8FF5A60EAC96C704571E3FCE5FB0AE95AAE2DF7A87C01FE5DC50F0978DE18EE98BD27FC4A0EB71341E1FCC4CFBE3E33D84CBD6CAC1A17D5B38724E9EF2AF692143B8762BEF5948386A4A8F59BBDFE681403892A86715A3271E7486273C32A66EA59B4B9DBBF58F8B5EE3668FACC0DF9526A6ACB95D5B6D9D8E113DBB38E9794E0FAEBD73FBFE1B7B83A010F7FA9A33A796E22D39AD4DFF571D3F1194C26A6A45C83268D233B52484EC85EBD508DFBB4F0324B88A226AA47BB9FB65F61A2FFFE921243C4C06C36EFC7240F2F14E036DD1BEEAF5737B0AF3CBD0DEE898E7C156304C7B7401560ECA52CCF5394B9CACC0D2BFFFD3EC2D4A4F624E6515479ADC2906BDC24267E8874E664AC4D5C2113B56462EAE49BDE1511DCA8E96B8FCD84EB8E172EDB00D3FBAEE29D7A67D61AD1FF8CC089F5BF744036CA7FE55C98CB89C15D07DAF14C5DA1129E9117DE1777868D71514A96A8A44BFCC04F105F4888219D2726D4FA9D2F00F8B206F31609AAEAC7A74374F3E4DDFEDB87EF598599DD7A3AE97F987F9D8DEE11CAE007A37226503359527B407F7D5D08D1C59AA817E7167F0F4F3B1124EA4991324738A6A5A0B9153F386BBF1A44E15832FFA8312542E3050C0EFD4438A23210528D895607631C1AEAD50B15DC15299398C809992308C31CF0580D4948FDA77EE381B993E17868C65A6994CD046494388DC4C7287864FAAFA8938A440D33595012F09AE2DE7952F80A06B095C430508CE9994DF4AEC16B5";

Nsstrings * param=[nsstrings stringWithFormat: @ "% @ % @ % @", a, b, c);

Why will be truncated?
log显示param为FBB51BDADCD94CA507417D2D3A8606E0A0A65071BE271C5FC8AA5F6B113A647E2B2989C7FF44435B6A9F3F700B731FBDEF7425730FA4E12EE6CE547953B4E0892919A127779F1F05D0022281C2A81FA766BAACFFEDC2EE92E11FC434CD4E5848654B3B2A9F97A46D80E98A7A268802402AA09AD0AB27636A22B94FB03ADFFA64FB6F9872B9B6C9030300F7427FF5448E31D249A12201CFE6FBD2F56DBCDF54893498A0AE31DBFD3516282518CC45C6182515BD56578169EDA8E93E46FC5FCDEAA1AEFADEDA130843A70BB63797E83E03F63C4357D63F7C19E2A6D5BC91B53EFA9288B9B3A4D13EAAA221CB4ED17E84710C80B3A0AC26323F1E5F346C84CAE59F79B981BA0D7AEE771447BDAF5C593EE1C479F98BA2FD842D063391A5EC94CE6144E31765EE06D8B9050DEAEDAD5AC6E981EA46FAA3385AC5518753DFCD758C88F9D4829874BA1051282DA597A98301B2D4204AC459B9CA4BCC3D88BB724F205B362BBC863BF2C44B03F496703506DBF4252088BD1E708153F07F9BC376F3AE16FDCD13E595116743439114EA82D0D8799B2DD4E468B6C291641C8B57381617EF8D78B63E5C0BED9BE43963A1837EFD0C29F3F870A0E4A3B26A6FC4D32CF35EA0A0579569044FB85B2208E2D37080B841E3ACFA8953D998C95E64F86BB3590E12AB887373CF535ACB939E66F1D98763E5BAD8C23CC3091733673D

CodePudding user response:

Log will be truncated, the actual string does not have a problem, the console just limit the length of the output

CodePudding user response:

The problem of the log, you can be validated for the length of the string, respectively printed ABC the addition of a string of length and the length of the param validation
  •  Tags:  
  • iOS
  • Related