string length function explaination

This page summarizes the projects mentioned and recommended in the original post on /r/ethdev

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • ens-contracts

    The core contracts of the ENS protocol

  • I came across this helper function to find a string length present at https://github.com/ensdomains/ens-contracts/blob/master/contracts/ethregistrar/StringUtils.sol And I couldn't understand what this piece of code is doing uint bytelength = bytes(s).length; for(len = 0; i < bytelength; len++) { bytes1 b = bytes(s)[i]; if(b < 0x80) { i += 1; } else if (b < 0xE0) { i += 2; } else if (b < 0xF0) { i += 3; } else if (b < 0xF8) { i += 4; } else if (b < 0xFC) { i += 5; } else { i += 6; } } return len; Any help is appreciated. Thank you

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Create a Blog with Eleventy and Storyblok

    2 projects | dev.to | 13 May 2024
  • Scroll: A language for scientists of all ages

    1 project | news.ycombinator.com | 13 May 2024
  • How to prevent Prettier putting a full stop on a new line after a link

    1 project | dev.to | 13 May 2024
  • Show HN: Boxwood – simple templating engine for JavaScript, in JavaScript

    6 projects | news.ycombinator.com | 13 May 2024
  • Ask HN: Why Htmx So Controversial?

    1 project | news.ycombinator.com | 13 May 2024