0

I need to use in lua an analog of the function php - mb_substr, where there is - bitwise step. Example in php - mb_substr($value, 0, 32, '8bit'); is there anything like that lua?

edit: bit of a bit - bitwise step

4
  • stackoverflow.com/questions/17879997/lua-string-char-encoding Commented Nov 14, 2017 at 11:16
  • What if I need to get a bit of a bit? string = $J�R[Tߑ��ǢN�m3�d�@�;@���+m��Q�8�os�E��~8f124d90c959e36d81464562fe0393e2 Commented Nov 14, 2017 at 11:58
  • what is "a bit of a bit" supposed to mean? Commented Nov 14, 2017 at 12:37
  • Can you explain what exactly you are trying to do? It seems confusing to be doing bitwise operations while discussing a character function. Commented Nov 15, 2017 at 3:48

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.