Skip to content

Commit

Permalink
Stash
Browse files Browse the repository at this point in the history
  • Loading branch information
lukhio committed Jun 10, 2024
1 parent 39ccb42 commit 04bc760
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/dex_classes.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! Representation of a class and encoded methods
//!
//!
use std::io::{Seek, SeekFrom};
use lazy_static::lazy_static;
use regex::Regex;
Expand All @@ -12,8 +16,11 @@ use crate::dex_types::DexTypes;
use crate::dex_fields::DexFields;
use crate::dex_methods::DexMethods;

/// Constant to represent the absence of index
const NO_INDEX: u32 = 0xffffffff;

lazy_static!{
/// Regex for method prototypes
static ref METHOD_REGEX: Regex = Regex::new(r"(?x)
(?P<class>L[a-zA-Z/$0-9]+;)
(->)
Expand All @@ -22,7 +29,7 @@ lazy_static!{
").unwrap();
}


/// Class definition
#[derive(Debug)]
pub struct ClassDefItem {
class_str: String,
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub mod map_list;
pub mod error;
pub mod dex_reader;
pub mod adler32;
pub mod constants;
pub mod mutf8;
pub mod dex_strings;
pub mod dex_types;
Expand Down

0 comments on commit 04bc760

Please sign in to comment.