Skip to content

hanachin/mruby-string-xor

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

mruby-string-xor Build Status

Add String#^(other) method that return XOR of two strings.

Installation

Add this line to build_config.rb

MRuby::Build.new do |conf|
  conf.gem github: 'hanachin/mruby-string-xor'
end

or add this line to your aplication's mrbgem.rake

MRuby::Gem::Specification.new('your-mrbgem') do |spec|
  spec.add_dependency 'mruby-string-xor', github: 'hanachin/mruby-string-xor'
end

Usage

'わーい!' ^ 'わーい!'
# => "\000\000\000\000\000\000\000\000\000\000\000\000"

How to execute test

$ git clone https://github.com/hanachin/mruby-string-xor.git
$ cd mruby-string-xor
$ ./test.sh

License

MIT

About

Add String#^(other) method that return XOR of two strings.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published